<?xml version="1.0" encoding="UTF-8" ?>
<DataIntegratorExport repositoryVersion="12.2.2.0000" productVersion="12.2.3.2">
<DIDatabaseDatastore name="SRCSTAGING_DS" typeId="3" >
<DIAttributes>
<DIAttribute name="DBLiveLoad" value="no"/>
<DIAttribute name="application_type" value="Custom"/>
<DIAttribute name="cdc_enabled" value="no"/>
<DIAttribute name="datastore_repotype" value="local"/>
<DIAttribute name="ds_configuration_enabled" value="yes"/>
<DIAttribute name="ds_configurations" hasNestedXMLTree ="true">

<DSConfigurations>
<DSConfiguration default="true" name="Default">
<case_sensitive>no</case_sensitive>
<database_type>Microsoft_SQL_Server</database_type>
<db_alias_name1>SRCSTAGING_ALIAS</db_alias_name1>
<db_alias_user1>dws</db_alias_user1>
<loader_xact_size>1000</loader_xact_size>
<locale_codepage>&lt;default&gt;</locale_codepage>
<locale_language>&lt;default&gt;</locale_language>
<locale_territory>&lt;default&gt;</locale_territory>
<mssql_windows_authentication>no</mssql_windows_authentication>
<password>;085A6DF93DA01ED1DEA3BB1DC1D656C0EF56E65913FB53605B75804428674DE2</password>
<sql_server_database>XsStaging</sql_server_database>
<sql_server_dataserver>localhost,1433</sql_server_dataserver>
<sql_server_version>Microsoft SQL Server 2005</sql_server_version>
<user>dws</user>
</DSConfiguration>
</DSConfigurations>

</DIAttribute>
<DIAttribute name="enable_data_transfer" value="yes"/>
<DIAttribute name="import_unknown_type" value="no"/>
<DIAttribute name="name" value="SRCSTAGING_DS"/>
<DIAttribute name="unknown_type_size" value="255"/>
</DIAttributes>
</DIDatabaseDatastore>
<DIDatabaseDatastore name="DW_ABC_DS" typeId="3" >
<DIAttributes>
<DIAttribute name="DBLiveLoad" value="no"/>
<DIAttribute name="application_type" value="Custom"/>
<DIAttribute name="cdc_enabled" value="no"/>
<DIAttribute name="datastore_repotype" value="local"/>
<DIAttribute name="ds_configuration_enabled" value="yes"/>
<DIAttribute name="ds_configurations" hasNestedXMLTree ="true">

<DSConfigurations>
<DSConfiguration default="true" name="Default">
<case_sensitive>no</case_sensitive>
<database_type>Microsoft_SQL_Server</database_type>
<db_alias_name1>DW_ABC_ALIAS</db_alias_name1>
<db_alias_user1>dwabc</db_alias_user1>
<loader_xact_size>1000</loader_xact_size>
<locale_codepage>&lt;default&gt;</locale_codepage>
<locale_language>&lt;default&gt;</locale_language>
<locale_territory>&lt;default&gt;</locale_territory>
<mssql_windows_authentication>no</mssql_windows_authentication>
<password>;89770408927C5ECAB76D9855E0DA5FE4F25B0E2949263E3397D5BD72B1A30930</password>
<sql_server_database>XsStaging</sql_server_database>
<sql_server_dataserver>localhost,1433</sql_server_dataserver>
<sql_server_version>Microsoft SQL Server 2005</sql_server_version>
<user>dwabc</user>
</DSConfiguration>
</DSConfigurations>

</DIAttribute>
<DIAttribute name="enable_data_transfer" value="yes"/>
<DIAttribute name="import_unknown_type" value="no"/>
<DIAttribute name="name" value="DW_ABC_DS"/>
<DIAttribute name="unknown_type_size" value="255"/>
</DIAttributes>
</DIDatabaseDatastore>
<DIDatabaseDatastore name="DWSTAGING_DS" typeId="3" >
<DIAttributes>
<DIAttribute name="DBLiveLoad" value="no"/>
<DIAttribute name="application_type" value="Custom"/>
<DIAttribute name="cdc_enabled" value="no"/>
<DIAttribute name="datastore_repotype" value="local"/>
<DIAttribute name="ds_configuration_enabled" value="yes"/>
<DIAttribute name="ds_configurations" hasNestedXMLTree ="true">

<DSConfigurations>
<DSConfiguration default="true" name="Default">
<case_sensitive>no</case_sensitive>
<database_type>Microsoft_SQL_Server</database_type>
<db_alias_name1>DWSTAGING_ALIAS</db_alias_name1>
<db_alias_user1>dwst</db_alias_user1>
<loader_xact_size>1000</loader_xact_size>
<locale_codepage>&lt;default&gt;</locale_codepage>
<locale_language>&lt;default&gt;</locale_language>
<locale_territory>&lt;default&gt;</locale_territory>
<mssql_windows_authentication>no</mssql_windows_authentication>
<password>;9FA3E42F1AB29C1A240FBFA241A83F373415575169CA3130A2F2C50213AED23D</password>
<sql_server_database>XsStaging</sql_server_database>
<sql_server_dataserver>localhost,1433</sql_server_dataserver>
<sql_server_version>Microsoft SQL Server 2005</sql_server_version>
<user>dwst</user>
</DSConfiguration>
</DSConfigurations>

</DIAttribute>
<DIAttribute name="enable_data_transfer" value="yes"/>
<DIAttribute name="import_unknown_type" value="no"/>
<DIAttribute name="name" value="DWSTAGING_DS"/>
<DIAttribute name="unknown_type_size" value="255"/>
</DIAttributes>
</DIDatabaseDatastore>
<DIDatabaseDatastore name="DW_DS" typeId="3" >
<DIAttributes>
<DIAttribute name="DBLiveLoad" value="no"/>
<DIAttribute name="application_type" value="Custom"/>
<DIAttribute name="cdc_enabled" value="no"/>
<DIAttribute name="datastore_repotype" value="local"/>
<DIAttribute name="ds_configuration_enabled" value="yes"/>
<DIAttribute name="ds_configurations" hasNestedXMLTree ="true">

<DSConfigurations>
<DSConfiguration default="true" name="Default">
<case_sensitive>no</case_sensitive>
<database_type>Microsoft_SQL_Server</database_type>
<db_alias_name1>DW_ALIAS</db_alias_name1>
<db_alias_user1>dwt</db_alias_user1>
<loader_xact_size>1000</loader_xact_size>
<locale_codepage>&lt;default&gt;</locale_codepage>
<locale_language>&lt;default&gt;</locale_language>
<locale_territory>&lt;default&gt;</locale_territory>
<mssql_windows_authentication>no</mssql_windows_authentication>
<password>;C7D0EC161CA52183B3F6AA62065D16D75A3E6AAF455B3AE46139988B48682A4A</password>
<sql_server_database>XsTarget</sql_server_database>
<sql_server_dataserver>localhost,1433</sql_server_dataserver>
<sql_server_version>Microsoft SQL Server 2005</sql_server_version>
<user>dwt</user>
</DSConfiguration>
</DSConfigurations>

</DIAttribute>
<DIAttribute name="enable_data_transfer" value="yes"/>
<DIAttribute name="import_unknown_type" value="no"/>
<DIAttribute name="name" value="DW_DS"/>
<DIAttribute name="unknown_type_size" value="255"/>
</DIAttributes>
</DIDatabaseDatastore>
<DIDatabaseDatastore name="DW_METADATA_DS" typeId="3" >
<DIAttributes>
<DIAttribute name="DBLiveLoad" value="no"/>
<DIAttribute name="application_type" value="Custom"/>
<DIAttribute name="cdc_enabled" value="no"/>
<DIAttribute name="datastore_repotype" value="local"/>
<DIAttribute name="ds_configuration_enabled" value="yes"/>
<DIAttribute name="ds_configurations" hasNestedXMLTree ="true">

<DSConfigurations>
<DSConfiguration default="true" name="Default">
<case_sensitive>no</case_sensitive>
<database_type>Microsoft_SQL_Server</database_type>
<db_alias_name1>DW_METADATA_ALIAS</db_alias_name1>
<db_alias_user1>dwmetadata</db_alias_user1>
<loader_xact_size>1000</loader_xact_size>
<locale_codepage>&lt;default&gt;</locale_codepage>
<locale_language>&lt;default&gt;</locale_language>
<locale_territory>&lt;default&gt;</locale_territory>
<mssql_windows_authentication>no</mssql_windows_authentication>
<password>;085A6DF93DA01ED1DEA3BB1DC1D656C0EF56E65913FB53605B75804428674DE2</password>
<sql_server_database>XsStaging</sql_server_database>
<sql_server_dataserver>localhost,1433</sql_server_dataserver>
<sql_server_version>Microsoft SQL Server 2005</sql_server_version>
<user>dwmetadata</user>
</DSConfiguration>
</DSConfigurations>

</DIAttribute>
<DIAttribute name="enable_data_transfer" value="yes"/>
<DIAttribute name="import_unknown_type" value="no"/>
<DIAttribute name="name" value="DW_METADATA_DS"/>
<DIAttribute name="unknown_type_size" value="255"/>
</DIAttributes>
</DIDatabaseDatastore>
<DITable name="BUDGET_EXTT" owner="dws" datastore="SRCSTAGING_DS" database="XsStaging" description="" >
<DIProperties>
<DIAttribute name="Table_Type" value="TABLE" />
<DIAttribute name="Estimated_Row_Count" value="50000" />
<DIAttribute name="Loader_Is_Template_Table" value="no" />
<DIAttribute name="Total_Number_Of_Rows_Processed" value="0" />
<DIAttribute name="Number_Of_Rows_Rejected" value="0" />
<DIAttribute name="Number_Of_Inserts" value="Cannot track number of inserts, updates or deletes for AutoCorrect Loads" />
<DIAttribute name="Number_Of_Updates" value="Cannot track number of inserts, updates or deletes for AutoCorrect Loads" />
<DIAttribute name="Number_Of_Deletes" value="Cannot track number of inserts, updates or deletes for AutoCorrect Loads" />
<DIAttribute name="Elapsed_Time_For_Load" value="0 Seconds" />
<DIAttribute name="db_alias_name" value="SRCSTAGING_ALIAS" />
</DIProperties>
<DIColumn name="MD_BUSINESS_KEY" datatype="VARCHAR" size="100" nullable="false" >
</DIColumn>
<DIColumn name="SOURCE_NAME" datatype="VARCHAR" size="100" nullable="false" >
</DIColumn>
<DIColumn name="SRC_PRIMARY_KEY" datatype="VARCHAR" size="100" nullable="false" >
</DIColumn>
<DIColumn name="BUDGET_NAME_TARGET" datatype="VARCHAR" size="60" nullable="true" >
</DIColumn>
<DIColumn name="BUDGET_NAME_ALT" datatype="VARCHAR" size="60" nullable="true" >
</DIColumn>
<DIColumn name="SRC_LASTMODDATE" datatype="DATETIME" nullable="true" >
</DIColumn>
<DIColumn name="MD_BATCH_ID" datatype="DECIMAL" precision="19" scale="0" nullable="false" >
</DIColumn>
<DIColumn name="MD_FLAG" datatype="VARCHAR" size="10" nullable="true" >
</DIColumn>
<DIColumn name="MD_PROCESS_ID" datatype="DECIMAL" precision="19" scale="0" nullable="false" >
</DIColumn>
<DIColumn name="MD_CP_ID" datatype="DECIMAL" precision="10" scale="0" nullable="false" >
</DIColumn>
<DIPrimaryKey>
<DIPrimaryKeyColumn name="SOURCE_NAME" />
<DIPrimaryKeyColumn name="SRC_PRIMARY_KEY" />
<DIPrimaryKeyColumn name="MD_CP_ID" />
</DIPrimaryKey>
<DITableIndex name="PK_BUDGET_EXTT" unique="true">
<DIIndexColumn name="SOURCE_NAME" />
<DIIndexColumn name="SRC_PRIMARY_KEY" />
<DIIndexColumn name="MD_CP_ID" />
</DITableIndex>
</DITable>
<DITable name="BUDGET_EXTT_V" owner="dws" datastore="SRCSTAGING_DS" database="XsStaging" description="" >
<DIProperties>
<DIAttribute name="Table_Type" value="TABLE" />
<DIAttribute name="Estimated_Row_Count" value="50000" />
<DIAttribute name="Loader_Is_Template_Table" value="no" />
<DIAttribute name="db_alias_name" value="SRCSTAGING_ALIAS" />
</DIProperties>
<DIColumn name="BUDGET_NAME" datatype="VARCHAR" size="60" nullable="true" >
</DIColumn>
<DIColumn name="BUDGET_NAME_ALT" datatype="VARCHAR" size="60" nullable="true" >
</DIColumn>
</DITable>
<DITable name="COSTCATEGORY_EXTT" owner="dws" datastore="SRCSTAGING_DS" database="XsStaging" description="" >
<DIProperties>
<DIAttribute name="Table_Type" value="TABLE" />
<DIAttribute name="Estimated_Row_Count" value="50000" />
<DIAttribute name="Loader_Is_Template_Table" value="no" />
<DIAttribute name="Total_Number_Of_Rows_Processed" value="0" />
<DIAttribute name="Number_Of_Rows_Rejected" value="0" />
<DIAttribute name="Number_Of_Inserts" value="Cannot track number of inserts, updates or deletes for AutoCorrect Loads" />
<DIAttribute name="Number_Of_Updates" value="Cannot track number of inserts, updates or deletes for AutoCorrect Loads" />
<DIAttribute name="Number_Of_Deletes" value="Cannot track number of inserts, updates or deletes for AutoCorrect Loads" />
<DIAttribute name="Elapsed_Time_For_Load" value="1 Seconds" />
<DIAttribute name="db_alias_name" value="SRCSTAGING_ALIAS" />
</DIProperties>
<DIColumn name="MD_BUSINESS_KEY" datatype="VARCHAR" size="100" nullable="false" >
</DIColumn>
<DIColumn name="SOURCE_NAME" datatype="VARCHAR" size="100" nullable="false" >
</DIColumn>
<DIColumn name="SRC_PRIMARY_KEY" datatype="VARCHAR" size="100" nullable="false" >
</DIColumn>
<DIColumn name="COSTCATEGORY_NAME_TARGET" datatype="VARCHAR" size="60" nullable="false" >
</DIColumn>
<DIColumn name="COSTCATEGORY_NAME_ALT" datatype="VARCHAR" size="60" nullable="true" >
</DIColumn>
<DIColumn name="ACCOUNTING_CODE" datatype="VARCHAR" size="60" nullable="true" >
</DIColumn>
<DIColumn name="SRC_LASTMODDATE" datatype="DATETIME" nullable="true" >
</DIColumn>
<DIColumn name="MD_BATCH_ID" datatype="DECIMAL" precision="19" scale="0" nullable="false" >
</DIColumn>
<DIColumn name="MD_FLAG" datatype="VARCHAR" size="10" nullable="true" >
</DIColumn>
<DIColumn name="MD_PROCESS_ID" datatype="DECIMAL" precision="19" scale="0" nullable="false" >
</DIColumn>
<DIColumn name="MD_CP_ID" datatype="DECIMAL" precision="10" scale="0" nullable="false" >
</DIColumn>
<DIColumn name="SUB_CATEGORY" datatype="VARCHAR" size="60" nullable="true" >
</DIColumn>
<DIColumn name="DETAILED_CATEGORY" datatype="VARCHAR" size="60" nullable="true" >
</DIColumn>
<DIPrimaryKey>
<DIPrimaryKeyColumn name="SOURCE_NAME" />
<DIPrimaryKeyColumn name="SRC_PRIMARY_KEY" />
<DIPrimaryKeyColumn name="MD_CP_ID" />
</DIPrimaryKey>
<DITableIndex name="PK_COSTCATEGORY_EXTT" unique="true">
<DIIndexColumn name="SOURCE_NAME" />
<DIIndexColumn name="SRC_PRIMARY_KEY" />
<DIIndexColumn name="MD_CP_ID" />
</DITableIndex>
</DITable>
<DITable name="COSTCATEGORY_EXTT_V" owner="dws" datastore="SRCSTAGING_DS" database="XsStaging" description="" >
<DIProperties>
<DIAttribute name="Table_Type" value="TABLE" />
<DIAttribute name="Estimated_Row_Count" value="50000" />
<DIAttribute name="Loader_Is_Template_Table" value="no" />
<DIAttribute name="db_alias_name" value="SRCSTAGING_ALIAS" />
</DIProperties>
<DIColumn name="COSTCATEGORY_NAME_TARGET" datatype="VARCHAR" size="60" nullable="false" >
</DIColumn>
<DIColumn name="COSTCATEGORY_NAME_ALT" datatype="VARCHAR" size="60" nullable="true" >
</DIColumn>
<DIColumn name="ACCOUNTING_CODE" datatype="VARCHAR" size="60" nullable="true" >
</DIColumn>
<DIColumn name="SUB_CATEGORY" datatype="VARCHAR" size="60" nullable="true" >
</DIColumn>
<DIColumn name="DETAILED_CATEGORY" datatype="VARCHAR" size="60" nullable="true" >
</DIColumn>
<DIColumn name="SOURCE_NAME" datatype="VARCHAR" size="100" nullable="false" >
</DIColumn>
</DITable>
<DITable name="MEASURETYPE_EXTT" owner="dws" datastore="SRCSTAGING_DS" database="XsStaging" description="" >
<DIProperties>
<DIAttribute name="Table_Type" value="TABLE" />
<DIAttribute name="Estimated_Row_Count" value="50000" />
<DIAttribute name="Loader_Is_Template_Table" value="no" />
<DIAttribute name="Total_Number_Of_Rows_Processed" value="0" />
<DIAttribute name="Number_Of_Rows_Rejected" value="0" />
<DIAttribute name="Number_Of_Inserts" value="Cannot track number of inserts, updates or deletes for AutoCorrect Loads" />
<DIAttribute name="Number_Of_Updates" value="Cannot track number of inserts, updates or deletes for AutoCorrect Loads" />
<DIAttribute name="Number_Of_Deletes" value="Cannot track number of inserts, updates or deletes for AutoCorrect Loads" />
<DIAttribute name="Elapsed_Time_For_Load" value="0 Seconds" />
<DIAttribute name="db_alias_name" value="SRCSTAGING_ALIAS" />
</DIProperties>
<DIColumn name="MD_BUSINESS_KEY" datatype="VARCHAR" size="100" nullable="false" >
</DIColumn>
<DIColumn name="MD_BATCH_ID" datatype="DECIMAL" precision="19" scale="0" nullable="false" >
</DIColumn>
<DIColumn name="MD_PROCESS_ID" datatype="DECIMAL" precision="19" scale="0" nullable="false" >
</DIColumn>
<DIColumn name="SRC_PRIMARY_KEY" datatype="VARCHAR" size="100" nullable="false" >
</DIColumn>
<DIColumn name="SOURCE_NAME" datatype="VARCHAR" size="60" nullable="false" >
</DIColumn>
<DIColumn name="SOURCE_MEASURETYPE_NAME" datatype="VARCHAR" size="100" nullable="false" >
</DIColumn>
<DIColumn name="MEASURETYPE_NAME" datatype="VARCHAR" size="100" nullable="false" >
</DIColumn>
<DIColumn name="DESCRIPTION" datatype="VARCHAR" size="1024" nullable="true" >
</DIColumn>
<DIPrimaryKey>
<DIPrimaryKeyColumn name="SRC_PRIMARY_KEY" />
<DIPrimaryKeyColumn name="SOURCE_NAME" />
</DIPrimaryKey>
<DITableIndex name="PK_MEASURETYPE_EXTT" unique="true">
<DIIndexColumn name="SRC_PRIMARY_KEY" />
<DIIndexColumn name="SOURCE_NAME" />
</DITableIndex>
</DITable>
<DITable name="MEASURETYPE_EXTT_V" owner="dws" datastore="SRCSTAGING_DS" database="XsStaging" description="" >
<DIProperties>
<DIAttribute name="Table_Type" value="TABLE" />
<DIAttribute name="Estimated_Row_Count" value="50000" />
<DIAttribute name="Loader_Is_Template_Table" value="no" />
<DIAttribute name="db_alias_name" value="SRCSTAGING_ALIAS" />
</DIProperties>
<DIColumn name="MD_BUSINESS_KEY" datatype="VARCHAR" size="100" nullable="false" >
</DIColumn>
<DIColumn name="MEASURETYPE_NAME" datatype="VARCHAR" size="100" nullable="false" >
</DIColumn>
<DIColumn name="DESCRIPTION" datatype="VARCHAR" size="1024" nullable="true" >
</DIColumn>
</DITable>
<DITable name="STATUS_EXTT" owner="dws" datastore="SRCSTAGING_DS" database="XsStaging" description="" >
<DIProperties>
<DIAttribute name="Table_Type" value="TABLE" />
<DIAttribute name="Estimated_Row_Count" value="50000" />
<DIAttribute name="Loader_Is_Template_Table" value="no" />
<DIAttribute name="Total_Number_Of_Rows_Processed" value="0" />
<DIAttribute name="Number_Of_Rows_Rejected" value="0" />
<DIAttribute name="Number_Of_Inserts" value="Cannot track number of inserts, updates or deletes for AutoCorrect Loads" />
<DIAttribute name="Number_Of_Updates" value="Cannot track number of inserts, updates or deletes for AutoCorrect Loads" />
<DIAttribute name="Number_Of_Deletes" value="Cannot track number of inserts, updates or deletes for AutoCorrect Loads" />
<DIAttribute name="Elapsed_Time_For_Load" value="0 Seconds" />
<DIAttribute name="db_alias_name" value="SRCSTAGING_ALIAS" />
</DIProperties>
<DIColumn name="MD_BUSINESS_KEY" datatype="VARCHAR" size="100" nullable="false" >
</DIColumn>
<DIColumn name="MD_BATCH_ID" datatype="DECIMAL" precision="19" scale="0" nullable="false" >
</DIColumn>
<DIColumn name="MD_PROCESS_ID" datatype="DECIMAL" precision="19" scale="0" nullable="false" >
</DIColumn>
<DIColumn name="SRC_PRIMARY_KEY" datatype="VARCHAR" size="100" nullable="false" >
</DIColumn>
<DIColumn name="SOURCE_NAME" datatype="VARCHAR" size="60" nullable="false" >
</DIColumn>
<DIColumn name="SOURCE_STATUS_NAME" datatype="VARCHAR" size="100" nullable="false" >
</DIColumn>
<DIColumn name="CODE" datatype="DECIMAL" precision="16" scale="0" nullable="false" >
</DIColumn>
<DIColumn name="DESCRIPTION" datatype="VARCHAR" size="1024" nullable="true" >
</DIColumn>
<DIColumn name="STATUS_NAME" datatype="VARCHAR" size="100" nullable="false" >
</DIColumn>
<DIPrimaryKey>
<DIPrimaryKeyColumn name="SRC_PRIMARY_KEY" />
<DIPrimaryKeyColumn name="SOURCE_NAME" />
</DIPrimaryKey>
<DITableIndex name="PK_STATUS_EXTT" unique="true">
<DIIndexColumn name="SRC_PRIMARY_KEY" />
<DIIndexColumn name="SOURCE_NAME" />
</DITableIndex>
</DITable>
<DITable name="STATUS_EXTT_V" owner="dws" datastore="SRCSTAGING_DS" database="XsStaging" description="" >
<DIProperties>
<DIAttribute name="Table_Type" value="TABLE" />
<DIAttribute name="Estimated_Row_Count" value="50000" />
<DIAttribute name="Loader_Is_Template_Table" value="no" />
<DIAttribute name="db_alias_name" value="SRCSTAGING_ALIAS" />
</DIProperties>
<DIColumn name="MD_BUSINESS_KEY" datatype="VARCHAR" size="100" nullable="false" >
</DIColumn>
<DIColumn name="STATUS_NAME" datatype="VARCHAR" size="100" nullable="false" >
</DIColumn>
<DIColumn name="DESCRIPTION" datatype="VARCHAR" size="1024" nullable="true" >
</DIColumn>
<DIColumn name="CODE" datatype="DECIMAL" precision="16" scale="0" nullable="false" >
</DIColumn>
</DITable>
<DITable name="BUDGET_CSNP" owner="dwst" datastore="DWSTAGING_DS" database="XsStaging" description="" >
<DIProperties>
<DIAttribute name="Table_Type" value="TABLE" />
<DIAttribute name="Estimated_Row_Count" value="50000" />
<DIAttribute name="Loader_Is_Template_Table" value="no" />
<DIAttribute name="Total_Number_Of_Rows_Processed" value="0" />
<DIAttribute name="Number_Of_Rows_Rejected" value="0" />
<DIAttribute name="Number_Of_Inserts" value="Cannot track number of inserts, updates or deletes for AutoCorrect Loads" />
<DIAttribute name="Number_Of_Updates" value="Cannot track number of inserts, updates or deletes for AutoCorrect Loads" />
<DIAttribute name="Number_Of_Deletes" value="Cannot track number of inserts, updates or deletes for AutoCorrect Loads" />
<DIAttribute name="Elapsed_Time_For_Load" value="0 Seconds" />
<DIAttribute name="db_alias_name" value="DWSTAGING_ALIAS" />
</DIProperties>
<DIColumn name="MD_BATCH_ID" datatype="DECIMAL" precision="19" scale="0" nullable="false" >
</DIColumn>
<DIColumn name="MD_PROCESS_ID" datatype="DECIMAL" precision="19" scale="0" nullable="false" >
</DIColumn>
<DIColumn name="MD_BUSINESS_KEY" datatype="VARCHAR" size="100" nullable="true" >
</DIColumn>
<DIColumn name="MD_ENTERPRISE_KEY" datatype="DECIMAL" precision="18" scale="0" nullable="false" >
</DIColumn>
<DIColumn name="MD_FLAG" datatype="VARCHAR" size="10" nullable="true" >
</DIColumn>
<DIColumn name="BUDGET_NAME" datatype="VARCHAR" size="60" nullable="false" >
</DIColumn>
<DIColumn name="BUDGET_NAME_ALT" datatype="VARCHAR" size="60" nullable="true" >
</DIColumn>
<DIPrimaryKey>
<DIPrimaryKeyColumn name="MD_ENTERPRISE_KEY" />
</DIPrimaryKey>
<DITableIndex name="PK_BUDGET_CSNP" unique="true">
<DIIndexColumn name="MD_ENTERPRISE_KEY" />
</DITableIndex>
</DITable>
<DITable name="BUDGET_DIM_XFRN" owner="dwst" datastore="DWSTAGING_DS" database="XsStaging" description="" >
<DIProperties>
<DIAttribute name="Table_Type" value="TABLE" />
<DIAttribute name="Estimated_Row_Count" value="50000" />
<DIAttribute name="Loader_Is_Template_Table" value="no" />
<DIAttribute name="Total_Number_Of_Rows_Processed" value="0" />
<DIAttribute name="Number_Of_Rows_Rejected" value="0" />
<DIAttribute name="Number_Of_Inserts" value="0" />
<DIAttribute name="Elapsed_Time_For_Load" value="0 Seconds" />
<DIAttribute name="db_alias_name" value="DWSTAGING_ALIAS" />
</DIProperties>
<DIColumn name="MD_BATCH_ID" datatype="DECIMAL" precision="19" scale="0" nullable="false" >
</DIColumn>
<DIColumn name="MD_PROCESS_ID" datatype="DECIMAL" precision="19" scale="0" nullable="false" >
</DIColumn>
<DIColumn name="BUDGET_NAME" datatype="VARCHAR" size="60" nullable="false" >
</DIColumn>
<DIColumn name="MD_DURABLE_KEY" datatype="DECIMAL" precision="18" scale="0" nullable="true" >
</DIColumn>
<DIColumn name="MD_LASTMODDATE" datatype="DATETIME" nullable="true" >
</DIColumn>
<DIColumn name="MD_ACTIVESTATUSIND" datatype="VARCHAR" size="1" nullable="false" >
</DIColumn>
<DIColumn name="MD_TRANSLASTIND" datatype="VARCHAR" size="1" nullable="false" >
</DIColumn>
<DIColumn name="MD_CREATEDDATE" datatype="DATETIME" nullable="false" >
</DIColumn>
<DIColumn name="MD_TRANSENDDATE" datatype="DATETIME" nullable="true" >
</DIColumn>
<DIColumn name="MD_DELETEDDATE" datatype="DATETIME" nullable="true" >
</DIColumn>
<DIColumn name="PK_BUDGET_ID" datatype="DECIMAL" precision="18" scale="0" nullable="false" >
</DIColumn>
<DIColumn name="BUDGET_NAME_ALT" datatype="VARCHAR" size="60" nullable="true" >
</DIColumn>
<DIPrimaryKey>
<DIPrimaryKeyColumn name="PK_BUDGET_ID" />
</DIPrimaryKey>
<DITableIndex name="PK_BUDGET_DIM_XFRN" unique="true">
<DIIndexColumn name="PK_BUDGET_ID" />
</DITableIndex>
</DITable>
<DITable name="BUDGET_DIM_XFRN_V" owner="dwst" datastore="DWSTAGING_DS" database="XsStaging" description="" >
<DIProperties>
<DIAttribute name="Table_Type" value="TABLE" />
<DIAttribute name="Estimated_Row_Count" value="50000" />
<DIAttribute name="Loader_Is_Template_Table" value="no" />
<DIAttribute name="db_alias_name" value="DWSTAGING_ALIAS" />
</DIProperties>
<DIColumn name="MD_BATCH_ID" datatype="DECIMAL" precision="19" scale="0" nullable="false" >
</DIColumn>
<DIColumn name="MD_PROCESS_ID" datatype="DECIMAL" precision="19" scale="0" nullable="false" >
</DIColumn>
<DIColumn name="BUDGET_NAME" datatype="VARCHAR" size="60" nullable="false" >
</DIColumn>
<DIColumn name="MD_DURABLE_KEY" datatype="DECIMAL" precision="18" scale="0" nullable="true" >
</DIColumn>
<DIColumn name="MD_LASTMODDATE" datatype="DATETIME" nullable="true" >
</DIColumn>
<DIColumn name="MD_ACTIVESTATUSIND" datatype="VARCHAR" size="1" nullable="false" >
</DIColumn>
<DIColumn name="MD_TRANSLASTIND" datatype="VARCHAR" size="1" nullable="false" >
</DIColumn>
<DIColumn name="MD_CREATEDDATE" datatype="DATETIME" nullable="false" >
</DIColumn>
<DIColumn name="MD_TRANSENDDATE" datatype="DATETIME" nullable="true" >
</DIColumn>
<DIColumn name="MD_DELETEDDATE" datatype="DATETIME" nullable="true" >
</DIColumn>
<DIColumn name="PK_BUDGET_ID" datatype="DECIMAL" precision="18" scale="0" nullable="false" >
</DIColumn>
<DIColumn name="BUDGET_NAME_ALT" datatype="VARCHAR" size="60" nullable="true" >
</DIColumn>
</DITable>
<DITable name="BUDGET_DIM_XFRU" owner="dwst" datastore="DWSTAGING_DS" database="XsStaging" description="" >
<DIProperties>
<DIAttribute name="Table_Type" value="TABLE" />
<DIAttribute name="Estimated_Row_Count" value="50000" />
<DIAttribute name="Loader_Is_Template_Table" value="no" />
<DIAttribute name="Total_Number_Of_Rows_Processed" value="0" />
<DIAttribute name="Number_Of_Rows_Rejected" value="0" />
<DIAttribute name="Number_Of_Inserts" value="0" />
<DIAttribute name="Elapsed_Time_For_Load" value="0 Seconds" />
<DIAttribute name="db_alias_name" value="DWSTAGING_ALIAS" />
</DIProperties>
<DIColumn name="MD_BATCH_ID" datatype="DECIMAL" precision="19" scale="0" nullable="false" >
</DIColumn>
<DIColumn name="MD_PROCESS_ID" datatype="DECIMAL" precision="19" scale="0" nullable="false" >
</DIColumn>
<DIColumn name="MD_ACTIVESTATUSIND" datatype="VARCHAR" size="1" nullable="false" >
</DIColumn>
<DIColumn name="PK_BUDGET_ID" datatype="DECIMAL" precision="18" scale="0" nullable="false" >
</DIColumn>
<DIColumn name="MD_DURABLE_KEY" datatype="DECIMAL" precision="18" scale="0" nullable="true" >
</DIColumn>
<DIColumn name="MD_TRANSENDDATE" datatype="DATETIME" nullable="true" >
</DIColumn>
<DIColumn name="MD_CREATEDDATE" datatype="DATETIME" nullable="true" >
</DIColumn>
<DIColumn name="BUDGET_NAME" datatype="VARCHAR" size="60" nullable="true" >
</DIColumn>
<DIColumn name="MD_DELETEDDATE" datatype="DATETIME" nullable="true" >
</DIColumn>
<DIColumn name="MD_LASTMODDATE" datatype="DATETIME" nullable="true" >
</DIColumn>
<DIColumn name="MD_TRANSLASTIND" datatype="VARCHAR" size="1" nullable="false" >
</DIColumn>
<DIColumn name="BUDGET_NAME_ALT" datatype="VARCHAR" size="60" nullable="true" >
</DIColumn>
<DIPrimaryKey>
<DIPrimaryKeyColumn name="PK_BUDGET_ID" />
</DIPrimaryKey>
<DITableIndex name="PK_BUDGET_DIM_XFRU" unique="true">
<DIIndexColumn name="PK_BUDGET_ID" />
</DITableIndex>
</DITable>
<DITable name="BUDGET_DIM_XFRU_V" owner="dwst" datastore="DWSTAGING_DS" database="XsStaging" description="" >
<DIProperties>
<DIAttribute name="Table_Type" value="TABLE" />
<DIAttribute name="Estimated_Row_Count" value="50000" />
<DIAttribute name="Loader_Is_Template_Table" value="no" />
<DIAttribute name="db_alias_name" value="DWSTAGING_ALIAS" />
</DIProperties>
<DIColumn name="MD_BATCH_ID" datatype="DECIMAL" precision="19" scale="0" nullable="false" >
</DIColumn>
<DIColumn name="MD_PROCESS_ID" datatype="DECIMAL" precision="19" scale="0" nullable="false" >
</DIColumn>
<DIColumn name="MD_ACTIVESTATUSIND" datatype="VARCHAR" size="1" nullable="false" >
</DIColumn>
<DIColumn name="PK_BUDGET_ID" datatype="DECIMAL" precision="18" scale="0" nullable="false" >
</DIColumn>
<DIColumn name="MD_DURABLE_KEY" datatype="DECIMAL" precision="18" scale="0" nullable="true" >
</DIColumn>
<DIColumn name="MD_TRANSENDDATE" datatype="DATETIME" nullable="true" >
</DIColumn>
<DIColumn name="MD_CREATEDDATE" datatype="DATETIME" nullable="true" >
</DIColumn>
<DIColumn name="BUDGET_NAME" datatype="VARCHAR" size="60" nullable="true" >
</DIColumn>
<DIColumn name="MD_DELETEDDATE" datatype="DATETIME" nullable="true" >
</DIColumn>
<DIColumn name="MD_LASTMODDATE" datatype="DATETIME" nullable="true" >
</DIColumn>
<DIColumn name="MD_TRANSLASTIND" datatype="VARCHAR" size="1" nullable="false" >
</DIColumn>
<DIColumn name="BUDGET_NAME_ALT" datatype="VARCHAR" size="60" nullable="true" >
</DIColumn>
</DITable>
<DITable name="BUDGET_ENTERPRISE_XREF" owner="dwst" datastore="DWSTAGING_DS" database="XsStaging" description="" >
<DIProperties>
<DIAttribute name="Table_Type" value="TABLE" />
<DIAttribute name="Estimated_Row_Count" value="50000" />
<DIAttribute name="Loader_Is_Template_Table" value="no" />
<DIAttribute name="Total_Number_Of_Rows_Processed" value="0" />
<DIAttribute name="Number_Of_Rows_Rejected" value="0" />
<DIAttribute name="Number_Of_Inserts" value="0" />
<DIAttribute name="Number_Of_Updates" value="0" />
<DIAttribute name="Number_Of_Deletes" value="0" />
<DIAttribute name="Elapsed_Time_For_Load" value="1 Seconds" />
<DIAttribute name="db_alias_name" value="DWSTAGING_ALIAS" />
</DIProperties>
<DIColumn name="MD_BATCH_ID" datatype="DECIMAL" precision="19" scale="0" nullable="false" >
</DIColumn>
<DIColumn name="MD_PROCESS_ID" datatype="DECIMAL" precision="19" scale="0" nullable="false" >
</DIColumn>
<DIColumn name="MODIFIEDDATETIME" datatype="DATETIME" nullable="true" >
</DIColumn>
<DIColumn name="ENTERPRISE_KEY" datatype="DECIMAL" precision="18" scale="0" nullable="false" >
</DIColumn>
<DIColumn name="MD_CP_ID" datatype="DECIMAL" precision="28" scale="0" nullable="false" >
</DIColumn>
<DIColumn name="CREATEDDATETIME" datatype="DATETIME" nullable="false" >
</DIColumn>
<DIColumn name="ENTERPRISE_XREF_ID" datatype="DECIMAL" precision="18" scale="0" nullable="false" >
</DIColumn>
<DIColumn name="BUSINESS_KEYVALUE" datatype="VARCHAR" size="100" nullable="true" >
</DIColumn>
<DIColumn name="SOURCE_INTEGRATION_XREF_ID" datatype="DECIMAL" precision="18" scale="0" nullable="true" >
</DIColumn>
<DIColumn name="UPDATE_STATUS" datatype="VARCHAR" size="20" nullable="false" >
</DIColumn>
<DIPrimaryKey>
<DIPrimaryKeyColumn name="ENTERPRISE_XREF_ID" />
</DIPrimaryKey>
<DITableIndex name="PK_BUDGET_ENTERPRISE_XREF" unique="true">
<DIIndexColumn name="ENTERPRISE_XREF_ID" />
</DITableIndex>
</DITable>
<DITable name="BUDGET_KEY_LOOKUP" owner="dwst" datastore="DWSTAGING_DS" database="XsStaging" description="" >
<DIProperties>
<DIAttribute name="Table_Type" value="TABLE" />
<DIAttribute name="Estimated_Row_Count" value="50000" />
<DIAttribute name="Loader_Is_Template_Table" value="no" />
<DIAttribute name="Total_Number_Of_Rows_Processed" value="0" />
<DIAttribute name="Number_Of_Rows_Rejected" value="0" />
<DIAttribute name="Number_Of_Inserts" value="Cannot track number of inserts, updates or deletes for AutoCorrect Loads" />
<DIAttribute name="Number_Of_Updates" value="Cannot track number of inserts, updates or deletes for AutoCorrect Loads" />
<DIAttribute name="Number_Of_Deletes" value="Cannot track number of inserts, updates or deletes for AutoCorrect Loads" />
<DIAttribute name="Elapsed_Time_For_Load" value="0 Seconds" />
<DIAttribute name="db_alias_name" value="DWSTAGING_ALIAS" />
</DIProperties>
<DIColumn name="MD_BATCH_ID" datatype="DECIMAL" precision="19" scale="0" nullable="false" >
</DIColumn>
<DIColumn name="MD_PROCESS_ID" datatype="DECIMAL" precision="19" scale="0" nullable="false" >
</DIColumn>
<DIColumn name="MD_LASTMODDATE" datatype="DATETIME" nullable="true" >
</DIColumn>
<DIColumn name="MD_CREATEDDATE" datatype="DATETIME" nullable="false" >
</DIColumn>
<DIColumn name="MD_EFFECTIVESTARTEDDATE" datatype="DATETIME" nullable="true" >
</DIColumn>
<DIColumn name="MD_DURABLE_KEY" datatype="DECIMAL" precision="18" scale="0" nullable="false" >
</DIColumn>
<DIColumn name="MD_SURROGATE_KEY" datatype="DECIMAL" precision="18" scale="0" nullable="false" >
</DIColumn>
<DIColumn name="MD_EFFECTIVEENDEDDATE" datatype="DATETIME" nullable="true" >
</DIColumn>
<DIColumn name="MD_FLAG" datatype="VARCHAR" size="10" nullable="false" >
</DIColumn>
<DIColumn name="PK_BUDGET_LOOKUP_ID" datatype="DECIMAL" precision="18" scale="0" nullable="false" >
</DIColumn>
<DIPrimaryKey>
<DIPrimaryKeyColumn name="PK_BUDGET_LOOKUP_ID" />
</DIPrimaryKey>
<DITableIndex name="PK_BUDGET_KEY_LOOKUP" unique="true">
<DIIndexColumn name="PK_BUDGET_LOOKUP_ID" />
</DITableIndex>
</DITable>
<DITable name="BUDGET_MSC" owner="dwst" datastore="DWSTAGING_DS" database="XsStaging" description="" >
<DIProperties>
<DIAttribute name="Table_Type" value="TABLE" />
<DIAttribute name="Estimated_Row_Count" value="50000" />
<DIAttribute name="Loader_Is_Template_Table" value="no" />
<DIAttribute name="Total_Number_Of_Rows_Processed" value="0" />
<DIAttribute name="Number_Of_Rows_Rejected" value="0" />
<DIAttribute name="Number_Of_Inserts" value="0" />
<DIAttribute name="Elapsed_Time_For_Load" value="0 Seconds" />
<DIAttribute name="db_alias_name" value="DWSTAGING_ALIAS" />
</DIProperties>
<DIColumn name="MD_BATCH_ID" datatype="DECIMAL" precision="19" scale="0" nullable="false" >
</DIColumn>
<DIColumn name="MD_PROCESS_ID" datatype="DECIMAL" precision="19" scale="0" nullable="false" >
</DIColumn>
<DIColumn name="MD_BUSINESS_KEY" datatype="VARCHAR" size="100" nullable="true" >
</DIColumn>
<DIColumn name="BUDGET_NAME" datatype="VARCHAR" size="60" nullable="false" >
</DIColumn>
<DIColumn name="BUDGET_NAME_ALT" datatype="VARCHAR" size="60" nullable="true" >
</DIColumn>
<DIColumn name="MD_ENTERPRISE_KEY" datatype="DECIMAL" precision="18" scale="0" nullable="false" >
</DIColumn>
<DIColumn name="MD_FLAG" datatype="VARCHAR" size="10" nullable="true" >
</DIColumn>
<DIPrimaryKey>
<DIPrimaryKeyColumn name="MD_ENTERPRISE_KEY" />
</DIPrimaryKey>
<DITableIndex name="PK_BUDGET_MSC" unique="true">
<DIIndexColumn name="MD_ENTERPRISE_KEY" />
</DITableIndex>
</DITable>
<DITable name="BUDGET_MSC_V" owner="dwst" datastore="DWSTAGING_DS" database="XsStaging" description="" >
<DIProperties>
<DIAttribute name="Table_Type" value="TABLE" />
<DIAttribute name="Estimated_Row_Count" value="50000" />
<DIAttribute name="Loader_Is_Template_Table" value="no" />
<DIAttribute name="db_alias_name" value="DWSTAGING_ALIAS" />
</DIProperties>
<DIColumn name="MD_BATCH_ID" datatype="DECIMAL" precision="19" scale="0" nullable="false" >
</DIColumn>
<DIColumn name="MD_PROCESS_ID" datatype="DECIMAL" precision="19" scale="0" nullable="false" >
</DIColumn>
<DIColumn name="MD_BUSINESS_KEY" datatype="VARCHAR" size="100" nullable="true" >
</DIColumn>
<DIColumn name="BUDGET_NAME" datatype="VARCHAR" size="60" nullable="false" >
</DIColumn>
<DIColumn name="BUDGET_NAME_ALT" datatype="VARCHAR" size="60" nullable="true" >
</DIColumn>
<DIColumn name="MD_ENTERPRISE_KEY" datatype="DECIMAL" precision="18" scale="0" nullable="false" >
</DIColumn>
<DIColumn name="MD_FLAG" datatype="VARCHAR" size="10" nullable="true" >
</DIColumn>
</DITable>
<DITable name="COSTCATEGORY_CSNP" owner="dwst" datastore="DWSTAGING_DS" database="XsStaging" description="" >
<DIProperties>
<DIAttribute name="Table_Type" value="TABLE" />
<DIAttribute name="Estimated_Row_Count" value="50000" />
<DIAttribute name="Loader_Is_Template_Table" value="no" />
<DIAttribute name="Total_Number_Of_Rows_Processed" value="0" />
<DIAttribute name="Number_Of_Rows_Rejected" value="0" />
<DIAttribute name="Number_Of_Inserts" value="Cannot track number of inserts, updates or deletes for AutoCorrect Loads" />
<DIAttribute name="Number_Of_Updates" value="Cannot track number of inserts, updates or deletes for AutoCorrect Loads" />
<DIAttribute name="Number_Of_Deletes" value="Cannot track number of inserts, updates or deletes for AutoCorrect Loads" />
<DIAttribute name="Elapsed_Time_For_Load" value="0 Seconds" />
<DIAttribute name="db_alias_name" value="DWSTAGING_ALIAS" />
</DIProperties>
<DIColumn name="MD_BATCH_ID" datatype="DECIMAL" precision="19" scale="0" nullable="false" >
</DIColumn>
<DIColumn name="MD_PROCESS_ID" datatype="DECIMAL" precision="19" scale="0" nullable="false" >
</DIColumn>
<DIColumn name="COSTCATEGORY_NAME_ALT" datatype="VARCHAR" size="60" nullable="true" >
</DIColumn>
<DIColumn name="MD_FLAG" datatype="VARCHAR" size="10" nullable="true" >
</DIColumn>
<DIColumn name="MD_BUSINESS_KEY" datatype="VARCHAR" size="100" nullable="true" >
</DIColumn>
<DIColumn name="MD_ENTERPRISE_KEY" datatype="DECIMAL" precision="18" scale="0" nullable="false" >
</DIColumn>
<DIColumn name="ACCOUNTING_CODE" datatype="VARCHAR" size="60" nullable="true" >
</DIColumn>
<DIColumn name="COSTCATEGORY_NAME" datatype="VARCHAR" size="60" nullable="false" >
</DIColumn>
<DIColumn name="DETAILED_CATEGORY" datatype="VARCHAR" size="60" nullable="true" >
</DIColumn>
<DIColumn name="SUB_CATEGORY" datatype="VARCHAR" size="60" nullable="true" >
</DIColumn>
<DIPrimaryKey>
<DIPrimaryKeyColumn name="MD_ENTERPRISE_KEY" />
</DIPrimaryKey>
<DITableIndex name="PK_COSTCATEGORY_CSNP" unique="true">
<DIIndexColumn name="MD_ENTERPRISE_KEY" />
</DITableIndex>
</DITable>
<DITable name="COSTCATEGORY_DIM_XFRN" owner="dwst" datastore="DWSTAGING_DS" database="XsStaging" description="" >
<DIProperties>
<DIAttribute name="Table_Type" value="TABLE" />
<DIAttribute name="Estimated_Row_Count" value="50000" />
<DIAttribute name="Loader_Is_Template_Table" value="no" />
<DIAttribute name="Total_Number_Of_Rows_Processed" value="0" />
<DIAttribute name="Number_Of_Rows_Rejected" value="0" />
<DIAttribute name="Number_Of_Inserts" value="0" />
<DIAttribute name="Elapsed_Time_For_Load" value="0 Seconds" />
<DIAttribute name="db_alias_name" value="DWSTAGING_ALIAS" />
</DIProperties>
<DIColumn name="MD_BATCH_ID" datatype="DECIMAL" precision="19" scale="0" nullable="false" >
</DIColumn>
<DIColumn name="MD_PROCESS_ID" datatype="DECIMAL" precision="19" scale="0" nullable="false" >
</DIColumn>
<DIColumn name="MD_ACTIVESTATUSIND" datatype="VARCHAR" size="1" nullable="false" >
</DIColumn>
<DIColumn name="MD_TRANSENDDATE" datatype="DATETIME" nullable="true" >
</DIColumn>
<DIColumn name="MD_TRANSLASTIND" datatype="VARCHAR" size="1" nullable="false" >
</DIColumn>
<DIColumn name="PK_COSTCATEGORY_ID" datatype="DECIMAL" precision="18" scale="0" nullable="false" >
</DIColumn>
<DIColumn name="COSTCATEGORY_NAME" datatype="VARCHAR" size="60" nullable="false" >
</DIColumn>
<DIColumn name="SUB_CATEGORY" datatype="VARCHAR" size="60" nullable="true" >
</DIColumn>
<DIColumn name="MD_CREATEDDATE" datatype="DATETIME" nullable="false" >
</DIColumn>
<DIColumn name="ACCOUNTING_CODE" datatype="VARCHAR" size="60" nullable="true" >
</DIColumn>
<DIColumn name="DETAILED_CATEGORY" datatype="VARCHAR" size="60" nullable="true" >
</DIColumn>
<DIColumn name="MD_DURABLE_KEY" datatype="DECIMAL" precision="18" scale="0" nullable="true" >
</DIColumn>
<DIColumn name="MD_LASTMODDATE" datatype="DATETIME" nullable="true" >
</DIColumn>
<DIColumn name="MD_DELETEDDATE" datatype="DATETIME" nullable="true" >
</DIColumn>
<DIColumn name="COSTCATEGORY_NAME_ALT" datatype="VARCHAR" size="60" nullable="true" >
</DIColumn>
<DIPrimaryKey>
<DIPrimaryKeyColumn name="PK_COSTCATEGORY_ID" />
</DIPrimaryKey>
<DITableIndex name="PK_COSTCATEGORY_DIM_XFRN" unique="true">
<DIIndexColumn name="PK_COSTCATEGORY_ID" />
</DITableIndex>
</DITable>
<DITable name="COSTCATEGORY_DIM_XFRN_V" owner="dwst" datastore="DWSTAGING_DS" database="XsStaging" description="" >
<DIProperties>
<DIAttribute name="Table_Type" value="TABLE" />
<DIAttribute name="Estimated_Row_Count" value="50000" />
<DIAttribute name="Loader_Is_Template_Table" value="no" />
<DIAttribute name="db_alias_name" value="DWSTAGING_ALIAS" />
</DIProperties>
<DIColumn name="MD_BATCH_ID" datatype="DECIMAL" precision="19" scale="0" nullable="false" >
</DIColumn>
<DIColumn name="MD_PROCESS_ID" datatype="DECIMAL" precision="19" scale="0" nullable="false" >
</DIColumn>
<DIColumn name="MD_ACTIVESTATUSIND" datatype="VARCHAR" size="1" nullable="false" >
</DIColumn>
<DIColumn name="MD_TRANSENDDATE" datatype="DATETIME" nullable="true" >
</DIColumn>
<DIColumn name="MD_TRANSLASTIND" datatype="VARCHAR" size="1" nullable="false" >
</DIColumn>
<DIColumn name="PK_COSTCATEGORY_ID" datatype="DECIMAL" precision="18" scale="0" nullable="false" >
</DIColumn>
<DIColumn name="COSTCATEGORY_NAME" datatype="VARCHAR" size="60" nullable="false" >
</DIColumn>
<DIColumn name="SUB_CATEGORY" datatype="VARCHAR" size="60" nullable="true" >
</DIColumn>
<DIColumn name="MD_CREATEDDATE" datatype="DATETIME" nullable="false" >
</DIColumn>
<DIColumn name="ACCOUNTING_CODE" datatype="VARCHAR" size="60" nullable="true" >
</DIColumn>
<DIColumn name="DETAILED_CATEGORY" datatype="VARCHAR" size="60" nullable="true" >
</DIColumn>
<DIColumn name="MD_DURABLE_KEY" datatype="DECIMAL" precision="18" scale="0" nullable="true" >
</DIColumn>
<DIColumn name="MD_LASTMODDATE" datatype="DATETIME" nullable="true" >
</DIColumn>
<DIColumn name="MD_DELETEDDATE" datatype="DATETIME" nullable="true" >
</DIColumn>
<DIColumn name="COSTCATEGORY_NAME_ALT" datatype="VARCHAR" size="60" nullable="true" >
</DIColumn>
</DITable>
<DITable name="COSTCATEGORY_ENTERPRISE_XREF" owner="dwst" datastore="DWSTAGING_DS" database="XsStaging" description="" >
<DIProperties>
<DIAttribute name="Table_Type" value="TABLE" />
<DIAttribute name="Estimated_Row_Count" value="50000" />
<DIAttribute name="Loader_Is_Template_Table" value="no" />
<DIAttribute name="Total_Number_Of_Rows_Processed" value="0" />
<DIAttribute name="Number_Of_Rows_Rejected" value="0" />
<DIAttribute name="Number_Of_Inserts" value="0" />
<DIAttribute name="Number_Of_Updates" value="0" />
<DIAttribute name="Number_Of_Deletes" value="0" />
<DIAttribute name="Elapsed_Time_For_Load" value="1 Seconds" />
<DIAttribute name="db_alias_name" value="DWSTAGING_ALIAS" />
</DIProperties>
<DIColumn name="MD_BATCH_ID" datatype="DECIMAL" precision="19" scale="0" nullable="false" >
</DIColumn>
<DIColumn name="MD_PROCESS_ID" datatype="DECIMAL" precision="19" scale="0" nullable="false" >
</DIColumn>
<DIColumn name="BUSINESS_KEYVALUE" datatype="VARCHAR" size="100" nullable="true" >
</DIColumn>
<DIColumn name="ENTERPRISE_KEY" datatype="DECIMAL" precision="18" scale="0" nullable="false" >
</DIColumn>
<DIColumn name="CREATEDDATETIME" datatype="DATETIME" nullable="false" >
</DIColumn>
<DIColumn name="UPDATE_STATUS" datatype="VARCHAR" size="20" nullable="false" >
</DIColumn>
<DIColumn name="MD_CP_ID" datatype="DECIMAL" precision="28" scale="0" nullable="false" >
</DIColumn>
<DIColumn name="MODIFIEDDATETIME" datatype="DATETIME" nullable="true" >
</DIColumn>
<DIColumn name="SOURCE_INTEGRATION_XREF_ID" datatype="DECIMAL" precision="18" scale="0" nullable="true" >
</DIColumn>
<DIColumn name="ENTERPRISE_XREF_ID" datatype="DECIMAL" precision="18" scale="0" nullable="false" >
</DIColumn>
<DIPrimaryKey>
<DIPrimaryKeyColumn name="ENTERPRISE_XREF_ID" />
</DIPrimaryKey>
<DITableIndex name="PK_COSTCATEGORY_ENTERPRISE_XREF" unique="true">
<DIIndexColumn name="ENTERPRISE_XREF_ID" />
</DITableIndex>
</DITable>
<DITable name="COSTCATEGORY_KEY_LOOKUP" owner="dwst" datastore="DWSTAGING_DS" database="XsStaging" description="" >
<DIProperties>
<DIAttribute name="Table_Type" value="TABLE" />
<DIAttribute name="Estimated_Row_Count" value="50000" />
<DIAttribute name="Loader_Is_Template_Table" value="no" />
<DIAttribute name="Total_Number_Of_Rows_Processed" value="0" />
<DIAttribute name="Number_Of_Rows_Rejected" value="0" />
<DIAttribute name="Number_Of_Inserts" value="0" />
<DIAttribute name="Number_Of_Updates" value="0" />
<DIAttribute name="Number_Of_Deletes" value="0" />
<DIAttribute name="Elapsed_Time_For_Load" value="0 Seconds" />
<DIAttribute name="db_alias_name" value="DWSTAGING_ALIAS" />
</DIProperties>
<DIColumn name="MD_BATCH_ID" datatype="DECIMAL" precision="19" scale="0" nullable="false" >
</DIColumn>
<DIColumn name="MD_PROCESS_ID" datatype="DECIMAL" precision="19" scale="0" nullable="false" >
</DIColumn>
<DIColumn name="MD_DURABLE_KEY" datatype="DECIMAL" precision="18" scale="0" nullable="false" >
</DIColumn>
<DIColumn name="MD_FLAG" datatype="VARCHAR" size="10" nullable="false" >
</DIColumn>
<DIColumn name="PK_COSTCATEGORY_LOOKUP_ID" datatype="DECIMAL" precision="18" scale="0" nullable="false" >
</DIColumn>
<DIColumn name="MD_LASTMODDATE" datatype="DATETIME" nullable="true" >
</DIColumn>
<DIColumn name="MD_EFFECTIVEENDEDDATE" datatype="DATETIME" nullable="true" >
</DIColumn>
<DIColumn name="MD_SURROGATE_KEY" datatype="DECIMAL" precision="18" scale="0" nullable="false" >
</DIColumn>
<DIColumn name="MD_CREATEDDATE" datatype="DATETIME" nullable="false" >
</DIColumn>
<DIColumn name="MD_EFFECTIVESTARTEDDATE" datatype="DATETIME" nullable="true" >
</DIColumn>
<DIPrimaryKey>
<DIPrimaryKeyColumn name="PK_COSTCATEGORY_LOOKUP_ID" />
</DIPrimaryKey>
<DITableIndex name="PK_COSTCATEGORY_KEY_LOOKUP" unique="true">
<DIIndexColumn name="PK_COSTCATEGORY_LOOKUP_ID" />
</DITableIndex>
</DITable>
<DITable name="COSTCATEGORY_MSC" owner="dwst" datastore="DWSTAGING_DS" database="XsStaging" description="" >
<DIProperties>
<DIAttribute name="Table_Type" value="TABLE" />
<DIAttribute name="Estimated_Row_Count" value="50000" />
<DIAttribute name="Loader_Is_Template_Table" value="no" />
<DIAttribute name="Total_Number_Of_Rows_Processed" value="0" />
<DIAttribute name="Number_Of_Rows_Rejected" value="0" />
<DIAttribute name="Number_Of_Inserts" value="0" />
<DIAttribute name="Elapsed_Time_For_Load" value="1 Seconds" />
<DIAttribute name="db_alias_name" value="DWSTAGING_ALIAS" />
</DIProperties>
<DIColumn name="MD_BATCH_ID" datatype="DECIMAL" precision="19" scale="0" nullable="false" >
</DIColumn>
<DIColumn name="MD_PROCESS_ID" datatype="DECIMAL" precision="19" scale="0" nullable="false" >
</DIColumn>
<DIColumn name="MD_FLAG" datatype="VARCHAR" size="10" nullable="true" >
</DIColumn>
<DIColumn name="MD_BUSINESS_KEY" datatype="VARCHAR" size="100" nullable="true" >
</DIColumn>
<DIColumn name="DETAILED_CATEGORY" datatype="VARCHAR" size="60" nullable="true" >
</DIColumn>
<DIColumn name="COSTCATEGORY_NAME_ALT" datatype="VARCHAR" size="60" nullable="true" >
</DIColumn>
<DIColumn name="COSTCATEGORY_NAME" datatype="VARCHAR" size="60" nullable="false" >
</DIColumn>
<DIColumn name="MD_ENTERPRISE_KEY" datatype="DECIMAL" precision="18" scale="0" nullable="false" >
</DIColumn>
<DIColumn name="SUB_CATEGORY" datatype="VARCHAR" size="60" nullable="true" >
</DIColumn>
<DIColumn name="ACCOUNTING_CODE" datatype="VARCHAR" size="60" nullable="true" >
</DIColumn>
<DIPrimaryKey>
<DIPrimaryKeyColumn name="MD_ENTERPRISE_KEY" />
</DIPrimaryKey>
<DITableIndex name="PK_COSTCATEGORY_MSC" unique="true">
<DIIndexColumn name="MD_ENTERPRISE_KEY" />
</DITableIndex>
</DITable>
<DITable name="COSTCATEGORY_MSC_V" owner="dwst" datastore="DWSTAGING_DS" database="XsStaging" description="" >
<DIProperties>
<DIAttribute name="Table_Type" value="TABLE" />
<DIAttribute name="Estimated_Row_Count" value="50000" />
<DIAttribute name="Loader_Is_Template_Table" value="no" />
<DIAttribute name="db_alias_name" value="DWSTAGING_ALIAS" />
</DIProperties>
<DIColumn name="MD_BATCH_ID" datatype="DECIMAL" precision="19" scale="0" nullable="false" >
</DIColumn>
<DIColumn name="MD_PROCESS_ID" datatype="DECIMAL" precision="19" scale="0" nullable="false" >
</DIColumn>
<DIColumn name="MD_FLAG" datatype="VARCHAR" size="10" nullable="true" >
</DIColumn>
<DIColumn name="MD_BUSINESS_KEY" datatype="VARCHAR" size="100" nullable="true" >
</DIColumn>
<DIColumn name="DETAILED_CATEGORY" datatype="VARCHAR" size="60" nullable="true" >
</DIColumn>
<DIColumn name="COSTCATEGORY_NAME_ALT" datatype="VARCHAR" size="60" nullable="true" >
</DIColumn>
<DIColumn name="COSTCATEGORY_NAME" datatype="VARCHAR" size="60" nullable="false" >
</DIColumn>
<DIColumn name="MD_ENTERPRISE_KEY" datatype="DECIMAL" precision="18" scale="0" nullable="false" >
</DIColumn>
<DIColumn name="SUB_CATEGORY" datatype="VARCHAR" size="60" nullable="true" >
</DIColumn>
<DIColumn name="ACCOUNTING_CODE" datatype="VARCHAR" size="60" nullable="true" >
</DIColumn>
</DITable>
<DITable name="ITFUNCTION_DIM_XFRN" owner="dwst" datastore="DWSTAGING_DS" database="XsStaging" description="" >
<DIProperties>
<DIAttribute name="Table_Type" value="TABLE" />
<DIAttribute name="Estimated_Row_Count" value="50000" />
<DIAttribute name="Loader_Is_Template_Table" value="no" />
<DIAttribute name="Total_Number_Of_Rows_Processed" value="0" />
<DIAttribute name="Number_Of_Rows_Rejected" value="0" />
<DIAttribute name="Number_Of_Inserts" value="0" />
<DIAttribute name="Elapsed_Time_For_Load" value="0 Seconds" />
<DIAttribute name="db_alias_name" value="DWSTAGING_ALIAS" />
</DIProperties>
<DIColumn name="MD_BATCH_ID" datatype="DECIMAL" precision="19" scale="0" nullable="false" >
</DIColumn>
<DIColumn name="MD_PROCESS_ID" datatype="DECIMAL" precision="19" scale="0" nullable="false" >
</DIColumn>
<DIColumn name="MD_CREATEDDATE" datatype="DATETIME" nullable="false" >
</DIColumn>
<DIColumn name="MD_LASTMODDATE" datatype="DATETIME" nullable="true" >
</DIColumn>
<DIColumn name="ITFUNCTION_NAME" datatype="VARCHAR" size="60" nullable="false" >
</DIColumn>
<DIColumn name="MD_DURABLE_KEY" datatype="DECIMAL" precision="18" scale="0" nullable="true" >
</DIColumn>
<DIColumn name="ITFUNCTION_NAME_ALT" datatype="VARCHAR" size="60" nullable="true" >
</DIColumn>
<DIColumn name="PK_ITFUNCTION_ID" datatype="DECIMAL" precision="18" scale="0" nullable="false" >
</DIColumn>
<DIColumn name="MD_ACTIVESTATUSIND" datatype="VARCHAR" size="1" nullable="false" >
</DIColumn>
<DIColumn name="MD_DELETEDDATE" datatype="DATETIME" nullable="true" >
</DIColumn>
<DIColumn name="MD_TRANSENDDATE" datatype="DATETIME" nullable="true" >
</DIColumn>
<DIColumn name="MD_TRANSLASTIND" datatype="VARCHAR" size="1" nullable="false" >
</DIColumn>
<DIPrimaryKey>
<DIPrimaryKeyColumn name="PK_ITFUNCTION_ID" />
</DIPrimaryKey>
<DITableIndex name="PK_ITFUNCTION_DIM_XFRN" unique="true">
<DIIndexColumn name="PK_ITFUNCTION_ID" />
</DITableIndex>
</DITable>
<DITable name="ITFUNCTION_DIM_XFRN_V" owner="dwst" datastore="DWSTAGING_DS" database="XsStaging" description="" >
<DIProperties>
<DIAttribute name="Table_Type" value="TABLE" />
<DIAttribute name="Estimated_Row_Count" value="50000" />
<DIAttribute name="Loader_Is_Template_Table" value="no" />
<DIAttribute name="db_alias_name" value="DWSTAGING_ALIAS" />
</DIProperties>
<DIColumn name="MD_BATCH_ID" datatype="DECIMAL" precision="19" scale="0" nullable="false" >
</DIColumn>
<DIColumn name="MD_PROCESS_ID" datatype="DECIMAL" precision="19" scale="0" nullable="false" >
</DIColumn>
<DIColumn name="MD_CREATEDDATE" datatype="DATETIME" nullable="false" >
</DIColumn>
<DIColumn name="MD_LASTMODDATE" datatype="DATETIME" nullable="true" >
</DIColumn>
<DIColumn name="ITFUNCTION_NAME" datatype="VARCHAR" size="60" nullable="false" >
</DIColumn>
<DIColumn name="MD_DURABLE_KEY" datatype="DECIMAL" precision="18" scale="0" nullable="true" >
</DIColumn>
<DIColumn name="ITFUNCTION_NAME_ALT" datatype="VARCHAR" size="60" nullable="true" >
</DIColumn>
<DIColumn name="PK_ITFUNCTION_ID" datatype="DECIMAL" precision="18" scale="0" nullable="false" >
</DIColumn>
<DIColumn name="MD_ACTIVESTATUSIND" datatype="VARCHAR" size="1" nullable="false" >
</DIColumn>
<DIColumn name="MD_DELETEDDATE" datatype="DATETIME" nullable="true" >
</DIColumn>
<DIColumn name="MD_TRANSENDDATE" datatype="DATETIME" nullable="true" >
</DIColumn>
<DIColumn name="MD_TRANSLASTIND" datatype="VARCHAR" size="1" nullable="false" >
</DIColumn>
</DITable>
<DITable name="MEASURETYPE_CSNP" owner="dwst" datastore="DWSTAGING_DS" database="XsStaging" description="" >
<DIProperties>
<DIAttribute name="Table_Type" value="TABLE" />
<DIAttribute name="Estimated_Row_Count" value="50000" />
<DIAttribute name="Loader_Is_Template_Table" value="no" />
<DIAttribute name="Total_Number_Of_Rows_Processed" value="0" />
<DIAttribute name="Number_Of_Rows_Rejected" value="0" />
<DIAttribute name="Number_Of_Inserts" value="Cannot track number of inserts, updates or deletes for AutoCorrect Loads" />
<DIAttribute name="Number_Of_Updates" value="Cannot track number of inserts, updates or deletes for AutoCorrect Loads" />
<DIAttribute name="Number_Of_Deletes" value="Cannot track number of inserts, updates or deletes for AutoCorrect Loads" />
<DIAttribute name="Elapsed_Time_For_Load" value="0 Seconds" />
<DIAttribute name="db_alias_name" value="DWSTAGING_ALIAS" />
</DIProperties>
<DIColumn name="MD_BATCH_ID" datatype="DECIMAL" precision="19" scale="0" nullable="false" >
</DIColumn>
<DIColumn name="MD_PROCESS_ID" datatype="DECIMAL" precision="19" scale="0" nullable="false" >
</DIColumn>
<DIColumn name="DESCRIPTION" datatype="VARCHAR" size="1024" nullable="true" >
</DIColumn>
<DIColumn name="MD_ENTERPRISE_KEY" datatype="DECIMAL" precision="18" scale="0" nullable="false" >
</DIColumn>
<DIColumn name="MEASURETYPE_NAME" datatype="VARCHAR" size="60" nullable="false" >
</DIColumn>
<DIColumn name="MD_FLAG" datatype="VARCHAR" size="10" nullable="true" >
</DIColumn>
<DIColumn name="MD_BUSINESS_KEY" datatype="VARCHAR" size="100" nullable="true" >
</DIColumn>
<DIPrimaryKey>
<DIPrimaryKeyColumn name="MD_ENTERPRISE_KEY" />
</DIPrimaryKey>
<DITableIndex name="PK_MEASURETYPE_CSNP" unique="true">
<DIIndexColumn name="MD_ENTERPRISE_KEY" />
</DITableIndex>
</DITable>
<DITable name="MEASURETYPE_DIM_XFRN" owner="dwst" datastore="DWSTAGING_DS" database="XsStaging" description="" >
<DIProperties>
<DIAttribute name="Table_Type" value="TABLE" />
<DIAttribute name="Estimated_Row_Count" value="50000" />
<DIAttribute name="Loader_Is_Template_Table" value="no" />
<DIAttribute name="Total_Number_Of_Rows_Processed" value="0" />
<DIAttribute name="Number_Of_Rows_Rejected" value="0" />
<DIAttribute name="Number_Of_Inserts" value="0" />
<DIAttribute name="Elapsed_Time_For_Load" value="0 Seconds" />
<DIAttribute name="db_alias_name" value="DWSTAGING_ALIAS" />
</DIProperties>
<DIColumn name="MD_BATCH_ID" datatype="DECIMAL" precision="19" scale="0" nullable="false" >
</DIColumn>
<DIColumn name="MD_PROCESS_ID" datatype="DECIMAL" precision="19" scale="0" nullable="false" >
</DIColumn>
<DIColumn name="MEASURETYPE_NAME" datatype="VARCHAR" size="60" nullable="false" >
</DIColumn>
<DIColumn name="MD_TRANSLASTIND" datatype="VARCHAR" size="1" nullable="false" >
</DIColumn>
<DIColumn name="MD_TRANSENDDATE" datatype="DATETIME" nullable="true" >
</DIColumn>
<DIColumn name="MD_CREATEDDATE" datatype="DATETIME" nullable="false" >
</DIColumn>
<DIColumn name="MD_ACTIVESTATUSIND" datatype="VARCHAR" size="1" nullable="false" >
</DIColumn>
<DIColumn name="DESCRIPTION" datatype="VARCHAR" size="1024" nullable="true" >
</DIColumn>
<DIColumn name="MD_DELETEDDATE" datatype="DATETIME" nullable="true" >
</DIColumn>
<DIColumn name="MD_LASTMODDATE" datatype="DATETIME" nullable="true" >
</DIColumn>
<DIColumn name="PK_MEASURETYPE_ID" datatype="DECIMAL" precision="18" scale="0" nullable="false" >
</DIColumn>
<DIColumn name="MD_DURABLE_KEY" datatype="DECIMAL" precision="18" scale="0" nullable="true" >
</DIColumn>
<DIPrimaryKey>
<DIPrimaryKeyColumn name="PK_MEASURETYPE_ID" />
</DIPrimaryKey>
<DITableIndex name="PK_MEASURETYPE_DIM_XFRN" unique="true">
<DIIndexColumn name="PK_MEASURETYPE_ID" />
</DITableIndex>
</DITable>
<DITable name="MEASURETYPE_DIM_XFRN_V" owner="dwst" datastore="DWSTAGING_DS" database="XsStaging" description="" >
<DIProperties>
<DIAttribute name="Table_Type" value="TABLE" />
<DIAttribute name="Estimated_Row_Count" value="50000" />
<DIAttribute name="Loader_Is_Template_Table" value="no" />
<DIAttribute name="db_alias_name" value="DWSTAGING_ALIAS" />
</DIProperties>
<DIColumn name="MD_BATCH_ID" datatype="DECIMAL" precision="19" scale="0" nullable="false" >
</DIColumn>
<DIColumn name="MD_PROCESS_ID" datatype="DECIMAL" precision="19" scale="0" nullable="false" >
</DIColumn>
<DIColumn name="MEASURETYPE_NAME" datatype="VARCHAR" size="60" nullable="false" >
</DIColumn>
<DIColumn name="MD_TRANSLASTIND" datatype="VARCHAR" size="1" nullable="false" >
</DIColumn>
<DIColumn name="MD_TRANSENDDATE" datatype="DATETIME" nullable="true" >
</DIColumn>
<DIColumn name="MD_CREATEDDATE" datatype="DATETIME" nullable="false" >
</DIColumn>
<DIColumn name="MD_ACTIVESTATUSIND" datatype="VARCHAR" size="1" nullable="false" >
</DIColumn>
<DIColumn name="DESCRIPTION" datatype="VARCHAR" size="1024" nullable="true" >
</DIColumn>
<DIColumn name="MD_DELETEDDATE" datatype="DATETIME" nullable="true" >
</DIColumn>
<DIColumn name="MD_LASTMODDATE" datatype="DATETIME" nullable="true" >
</DIColumn>
<DIColumn name="PK_MEASURETYPE_ID" datatype="DECIMAL" precision="18" scale="0" nullable="false" >
</DIColumn>
<DIColumn name="MD_DURABLE_KEY" datatype="DECIMAL" precision="18" scale="0" nullable="true" >
</DIColumn>
</DITable>
<DITable name="MEASURETYPE_DIM_XFRU" owner="dwst" datastore="DWSTAGING_DS" database="XsStaging" description="" >
<DIProperties>
<DIAttribute name="Table_Type" value="TABLE" />
<DIAttribute name="Estimated_Row_Count" value="50000" />
<DIAttribute name="Loader_Is_Template_Table" value="no" />
<DIAttribute name="Total_Number_Of_Rows_Processed" value="0" />
<DIAttribute name="Number_Of_Rows_Rejected" value="0" />
<DIAttribute name="Number_Of_Inserts" value="0" />
<DIAttribute name="Elapsed_Time_For_Load" value="0 Seconds" />
<DIAttribute name="db_alias_name" value="DWSTAGING_ALIAS" />
</DIProperties>
<DIColumn name="MD_BATCH_ID" datatype="DECIMAL" precision="19" scale="0" nullable="false" >
</DIColumn>
<DIColumn name="MD_PROCESS_ID" datatype="DECIMAL" precision="19" scale="0" nullable="false" >
</DIColumn>
<DIColumn name="MD_TRANSENDDATE" datatype="DATETIME" nullable="true" >
</DIColumn>
<DIColumn name="PK_MEASURETYPE_ID" datatype="DECIMAL" precision="18" scale="0" nullable="false" >
</DIColumn>
<DIColumn name="MD_DELETEDDATE" datatype="DATETIME" nullable="true" >
</DIColumn>
<DIColumn name="MD_LASTMODDATE" datatype="DATETIME" nullable="true" >
</DIColumn>
<DIColumn name="MEASURETYPE_NAME" datatype="VARCHAR" size="60" nullable="true" >
</DIColumn>
<DIColumn name="MD_TRANSLASTIND" datatype="VARCHAR" size="1" nullable="false" >
</DIColumn>
<DIColumn name="MD_CREATEDDATE" datatype="DATETIME" nullable="true" >
</DIColumn>
<DIColumn name="DESCRIPTION" datatype="VARCHAR" size="1024" nullable="true" >
</DIColumn>
<DIColumn name="MD_DURABLE_KEY" datatype="DECIMAL" precision="18" scale="0" nullable="true" >
</DIColumn>
<DIColumn name="MD_ACTIVESTATUSIND" datatype="VARCHAR" size="1" nullable="false" >
</DIColumn>
<DIPrimaryKey>
<DIPrimaryKeyColumn name="PK_MEASURETYPE_ID" />
</DIPrimaryKey>
<DITableIndex name="PK_MEASURETYPE_DIM_XFRU" unique="true">
<DIIndexColumn name="PK_MEASURETYPE_ID" />
</DITableIndex>
</DITable>
<DITable name="MEASURETYPE_DIM_XFRU_V" owner="dwst" datastore="DWSTAGING_DS" database="XsStaging" description="" >
<DIProperties>
<DIAttribute name="Table_Type" value="TABLE" />
<DIAttribute name="Estimated_Row_Count" value="50000" />
<DIAttribute name="Loader_Is_Template_Table" value="no" />
<DIAttribute name="db_alias_name" value="DWSTAGING_ALIAS" />
</DIProperties>
<DIColumn name="MD_BATCH_ID" datatype="DECIMAL" precision="19" scale="0" nullable="false" >
</DIColumn>
<DIColumn name="MD_PROCESS_ID" datatype="DECIMAL" precision="19" scale="0" nullable="false" >
</DIColumn>
<DIColumn name="MD_TRANSENDDATE" datatype="DATETIME" nullable="true" >
</DIColumn>
<DIColumn name="PK_MEASURETYPE_ID" datatype="DECIMAL" precision="18" scale="0" nullable="false" >
</DIColumn>
<DIColumn name="MD_DELETEDDATE" datatype="DATETIME" nullable="true" >
</DIColumn>
<DIColumn name="MD_LASTMODDATE" datatype="DATETIME" nullable="true" >
</DIColumn>
<DIColumn name="MEASURETYPE_NAME" datatype="VARCHAR" size="60" nullable="true" >
</DIColumn>
<DIColumn name="MD_TRANSLASTIND" datatype="VARCHAR" size="1" nullable="false" >
</DIColumn>
<DIColumn name="MD_CREATEDDATE" datatype="DATETIME" nullable="true" >
</DIColumn>
<DIColumn name="DESCRIPTION" datatype="VARCHAR" size="1024" nullable="true" >
</DIColumn>
<DIColumn name="MD_DURABLE_KEY" datatype="DECIMAL" precision="18" scale="0" nullable="true" >
</DIColumn>
<DIColumn name="MD_ACTIVESTATUSIND" datatype="VARCHAR" size="1" nullable="false" >
</DIColumn>
</DITable>
<DITable name="MEASURETYPE_ENTERPRISE_XREF" owner="dwst" datastore="DWSTAGING_DS" database="XsStaging" description="" >
<DIProperties>
<DIAttribute name="Table_Type" value="TABLE" />
<DIAttribute name="Estimated_Row_Count" value="50000" />
<DIAttribute name="Loader_Is_Template_Table" value="no" />
<DIAttribute name="Total_Number_Of_Rows_Processed" value="0" />
<DIAttribute name="Number_Of_Rows_Rejected" value="0" />
<DIAttribute name="Number_Of_Inserts" value="Cannot track number of inserts, updates or deletes for AutoCorrect Loads" />
<DIAttribute name="Number_Of_Updates" value="Cannot track number of inserts, updates or deletes for AutoCorrect Loads" />
<DIAttribute name="Number_Of_Deletes" value="Cannot track number of inserts, updates or deletes for AutoCorrect Loads" />
<DIAttribute name="Elapsed_Time_For_Load" value="1 Seconds" />
<DIAttribute name="db_alias_name" value="DWSTAGING_ALIAS" />
</DIProperties>
<DIColumn name="MD_BATCH_ID" datatype="DECIMAL" precision="19" scale="0" nullable="false" >
</DIColumn>
<DIColumn name="MD_PROCESS_ID" datatype="DECIMAL" precision="19" scale="0" nullable="false" >
</DIColumn>
<DIColumn name="CREATEDDATETIME" datatype="DATETIME" nullable="false" >
</DIColumn>
<DIColumn name="MD_CP_ID" datatype="DECIMAL" precision="28" scale="0" nullable="false" >
</DIColumn>
<DIColumn name="MODIFIEDDATETIME" datatype="DATETIME" nullable="true" >
</DIColumn>
<DIColumn name="BUSINESS_KEYVALUE" datatype="VARCHAR" size="100" nullable="true" >
</DIColumn>
<DIColumn name="SOURCE_INTEGRATION_XREF_ID" datatype="DECIMAL" precision="18" scale="0" nullable="true" >
</DIColumn>
<DIColumn name="ENTERPRISE_KEY" datatype="DECIMAL" precision="18" scale="0" nullable="false" >
</DIColumn>
<DIColumn name="ENTERPRISE_XREF_ID" datatype="DECIMAL" precision="18" scale="0" nullable="false" >
</DIColumn>
<DIColumn name="UPDATE_STATUS" datatype="VARCHAR" size="20" nullable="false" >
</DIColumn>
<DIPrimaryKey>
<DIPrimaryKeyColumn name="ENTERPRISE_XREF_ID" />
</DIPrimaryKey>
<DITableIndex name="PK_MEASURETYPE_ENTERPRISE_XREF" unique="true">
<DIIndexColumn name="ENTERPRISE_XREF_ID" />
</DITableIndex>
</DITable>
<DITable name="MEASURETYPE_KEY_LOOKUP" owner="dwst" datastore="DWSTAGING_DS" database="XsStaging" description="" >
<DIProperties>
<DIAttribute name="Table_Type" value="TABLE" />
<DIAttribute name="Estimated_Row_Count" value="50000" />
<DIAttribute name="Loader_Is_Template_Table" value="no" />
<DIAttribute name="Total_Number_Of_Rows_Processed" value="0" />
<DIAttribute name="Number_Of_Rows_Rejected" value="0" />
<DIAttribute name="Number_Of_Inserts" value="Cannot track number of inserts, updates or deletes for AutoCorrect Loads" />
<DIAttribute name="Number_Of_Updates" value="Cannot track number of inserts, updates or deletes for AutoCorrect Loads" />
<DIAttribute name="Number_Of_Deletes" value="Cannot track number of inserts, updates or deletes for AutoCorrect Loads" />
<DIAttribute name="Elapsed_Time_For_Load" value="0 Seconds" />
<DIAttribute name="db_alias_name" value="DWSTAGING_ALIAS" />
</DIProperties>
<DIColumn name="MD_BATCH_ID" datatype="DECIMAL" precision="19" scale="0" nullable="false" >
</DIColumn>
<DIColumn name="MD_PROCESS_ID" datatype="DECIMAL" precision="19" scale="0" nullable="false" >
</DIColumn>
<DIColumn name="MD_DURABLE_KEY" datatype="DECIMAL" precision="18" scale="0" nullable="false" >
</DIColumn>
<DIColumn name="MD_CREATEDDATE" datatype="DATETIME" nullable="false" >
</DIColumn>
<DIColumn name="MD_SURROGATE_KEY" datatype="DECIMAL" precision="18" scale="0" nullable="false" >
</DIColumn>
<DIColumn name="MD_EFFECTIVESTARTEDDATE" datatype="DATETIME" nullable="true" >
</DIColumn>
<DIColumn name="MD_EFFECTIVEENDEDDATE" datatype="DATETIME" nullable="true" >
</DIColumn>
<DIColumn name="PK_MEASURETYPE_LOOKUP_ID" datatype="DECIMAL" precision="18" scale="0" nullable="false" >
</DIColumn>
<DIColumn name="MD_LASTMODDATE" datatype="DATETIME" nullable="true" >
</DIColumn>
<DIColumn name="MD_FLAG" datatype="VARCHAR" size="10" nullable="false" >
</DIColumn>
<DIPrimaryKey>
<DIPrimaryKeyColumn name="PK_MEASURETYPE_LOOKUP_ID" />
</DIPrimaryKey>
<DITableIndex name="PK_MEASURETYPE_KEY_LOOKUP" unique="true">
<DIIndexColumn name="PK_MEASURETYPE_LOOKUP_ID" />
</DITableIndex>
</DITable>
<DITable name="MEASURETYPE_MSC" owner="dwst" datastore="DWSTAGING_DS" database="XsStaging" description="" >
<DIProperties>
<DIAttribute name="Table_Type" value="TABLE" />
<DIAttribute name="Estimated_Row_Count" value="50000" />
<DIAttribute name="Loader_Is_Template_Table" value="no" />
<DIAttribute name="Total_Number_Of_Rows_Processed" value="0" />
<DIAttribute name="Number_Of_Rows_Rejected" value="0" />
<DIAttribute name="Number_Of_Inserts" value="0" />
<DIAttribute name="Elapsed_Time_For_Load" value="0 Seconds" />
<DIAttribute name="db_alias_name" value="DWSTAGING_ALIAS" />
</DIProperties>
<DIColumn name="MD_BATCH_ID" datatype="DECIMAL" precision="19" scale="0" nullable="false" >
</DIColumn>
<DIColumn name="MD_PROCESS_ID" datatype="DECIMAL" precision="19" scale="0" nullable="false" >
</DIColumn>
<DIColumn name="MEASURETYPE_NAME" datatype="VARCHAR" size="60" nullable="false" >
</DIColumn>
<DIColumn name="MD_FLAG" datatype="VARCHAR" size="10" nullable="true" >
</DIColumn>
<DIColumn name="DESCRIPTION" datatype="VARCHAR" size="1024" nullable="true" >
</DIColumn>
<DIColumn name="MD_ENTERPRISE_KEY" datatype="DECIMAL" precision="18" scale="0" nullable="false" >
</DIColumn>
<DIColumn name="MD_BUSINESS_KEY" datatype="VARCHAR" size="100" nullable="true" >
</DIColumn>
<DIPrimaryKey>
<DIPrimaryKeyColumn name="MD_ENTERPRISE_KEY" />
</DIPrimaryKey>
<DITableIndex name="PK_MEASURETYPE_MSC" unique="true">
<DIIndexColumn name="MD_ENTERPRISE_KEY" />
</DITableIndex>
</DITable>
<DITable name="STATUS_CSNP" owner="dwst" datastore="DWSTAGING_DS" database="XsStaging" description="" >
<DIProperties>
<DIAttribute name="Table_Type" value="TABLE" />
<DIAttribute name="Estimated_Row_Count" value="50000" />
<DIAttribute name="Loader_Is_Template_Table" value="no" />
<DIAttribute name="Total_Number_Of_Rows_Processed" value="0" />
<DIAttribute name="Number_Of_Rows_Rejected" value="0" />
<DIAttribute name="Number_Of_Inserts" value="Cannot track number of inserts, updates or deletes for AutoCorrect Loads" />
<DIAttribute name="Number_Of_Updates" value="Cannot track number of inserts, updates or deletes for AutoCorrect Loads" />
<DIAttribute name="Number_Of_Deletes" value="Cannot track number of inserts, updates or deletes for AutoCorrect Loads" />
<DIAttribute name="Elapsed_Time_For_Load" value="1 Seconds" />
<DIAttribute name="db_alias_name" value="DWSTAGING_ALIAS" />
</DIProperties>
<DIColumn name="MD_BATCH_ID" datatype="DECIMAL" precision="19" scale="0" nullable="false" >
</DIColumn>
<DIColumn name="MD_PROCESS_ID" datatype="DECIMAL" precision="19" scale="0" nullable="false" >
</DIColumn>
<DIColumn name="CODE" datatype="DOUBLE" nullable="true" >
</DIColumn>
<DIColumn name="STATUS_NAME" datatype="VARCHAR" size="60" nullable="false" >
</DIColumn>
<DIColumn name="DESCRIPTION" datatype="VARCHAR" size="1024" nullable="true" >
</DIColumn>
<DIColumn name="MD_ENTERPRISE_KEY" datatype="DECIMAL" precision="18" scale="0" nullable="false" >
</DIColumn>
<DIColumn name="MD_FLAG" datatype="VARCHAR" size="10" nullable="true" >
</DIColumn>
<DIColumn name="MD_BUSINESS_KEY" datatype="VARCHAR" size="100" nullable="true" >
</DIColumn>
<DIPrimaryKey>
<DIPrimaryKeyColumn name="MD_ENTERPRISE_KEY" />
</DIPrimaryKey>
<DITableIndex name="PK_STATUS_CSNP" unique="true">
<DIIndexColumn name="MD_ENTERPRISE_KEY" />
</DITableIndex>
</DITable>
<DITable name="STATUS_DIM_XFRN" owner="dwst" datastore="DWSTAGING_DS" database="XsStaging" description="" >
<DIProperties>
<DIAttribute name="Table_Type" value="TABLE" />
<DIAttribute name="Estimated_Row_Count" value="50000" />
<DIAttribute name="Loader_Is_Template_Table" value="no" />
<DIAttribute name="Total_Number_Of_Rows_Processed" value="0" />
<DIAttribute name="Number_Of_Rows_Rejected" value="0" />
<DIAttribute name="Number_Of_Inserts" value="0" />
<DIAttribute name="Elapsed_Time_For_Load" value="0 Seconds" />
<DIAttribute name="db_alias_name" value="DWSTAGING_ALIAS" />
</DIProperties>
<DIColumn name="MD_BATCH_ID" datatype="DECIMAL" precision="19" scale="0" nullable="false" >
</DIColumn>
<DIColumn name="MD_PROCESS_ID" datatype="DECIMAL" precision="19" scale="0" nullable="false" >
</DIColumn>
<DIColumn name="STATUS_NAME" datatype="VARCHAR" size="60" nullable="false" >
</DIColumn>
<DIColumn name="MD_TRANSLASTIND" datatype="VARCHAR" size="1" nullable="false" >
</DIColumn>
<DIColumn name="MD_ACTIVESTATUSIND" datatype="VARCHAR" size="1" nullable="false" >
</DIColumn>
<DIColumn name="MD_CREATEDDATE" datatype="DATETIME" nullable="false" >
</DIColumn>
<DIColumn name="CODE" datatype="DOUBLE" nullable="true" >
</DIColumn>
<DIColumn name="MD_LASTMODDATE" datatype="DATETIME" nullable="true" >
</DIColumn>
<DIColumn name="MD_DURABLE_KEY" datatype="DECIMAL" precision="18" scale="0" nullable="true" >
</DIColumn>
<DIColumn name="MD_TRANSENDDATE" datatype="DATETIME" nullable="true" >
</DIColumn>
<DIColumn name="DESCRIPTION" datatype="VARCHAR" size="1024" nullable="true" >
</DIColumn>
<DIColumn name="MD_DELETEDDATE" datatype="DATETIME" nullable="true" >
</DIColumn>
<DIColumn name="PK_STATUS_ID" datatype="DECIMAL" precision="18" scale="0" nullable="false" >
</DIColumn>
<DIPrimaryKey>
<DIPrimaryKeyColumn name="PK_STATUS_ID" />
</DIPrimaryKey>
<DITableIndex name="PK_STATUS_DIM_XFRN" unique="true">
<DIIndexColumn name="PK_STATUS_ID" />
</DITableIndex>
</DITable>
<DITable name="STATUS_DIM_XFRN_V" owner="dwst" datastore="DWSTAGING_DS" database="XsStaging" description="" >
<DIProperties>
<DIAttribute name="Table_Type" value="TABLE" />
<DIAttribute name="Estimated_Row_Count" value="50000" />
<DIAttribute name="Loader_Is_Template_Table" value="no" />
<DIAttribute name="db_alias_name" value="DWSTAGING_ALIAS" />
</DIProperties>
<DIColumn name="MD_BATCH_ID" datatype="DECIMAL" precision="19" scale="0" nullable="false" >
</DIColumn>
<DIColumn name="MD_PROCESS_ID" datatype="DECIMAL" precision="19" scale="0" nullable="false" >
</DIColumn>
<DIColumn name="STATUS_NAME" datatype="VARCHAR" size="60" nullable="false" >
</DIColumn>
<DIColumn name="MD_TRANSLASTIND" datatype="VARCHAR" size="1" nullable="false" >
</DIColumn>
<DIColumn name="MD_ACTIVESTATUSIND" datatype="VARCHAR" size="1" nullable="false" >
</DIColumn>
<DIColumn name="MD_CREATEDDATE" datatype="DATETIME" nullable="false" >
</DIColumn>
<DIColumn name="CODE" datatype="DOUBLE" nullable="true" >
</DIColumn>
<DIColumn name="MD_LASTMODDATE" datatype="DATETIME" nullable="true" >
</DIColumn>
<DIColumn name="MD_DURABLE_KEY" datatype="DECIMAL" precision="18" scale="0" nullable="true" >
</DIColumn>
<DIColumn name="MD_TRANSENDDATE" datatype="DATETIME" nullable="true" >
</DIColumn>
<DIColumn name="DESCRIPTION" datatype="VARCHAR" size="1024" nullable="true" >
</DIColumn>
<DIColumn name="MD_DELETEDDATE" datatype="DATETIME" nullable="true" >
</DIColumn>
<DIColumn name="PK_STATUS_ID" datatype="DECIMAL" precision="18" scale="0" nullable="false" >
</DIColumn>
</DITable>
<DITable name="STATUS_DIM_XFRU" owner="dwst" datastore="DWSTAGING_DS" database="XsStaging" description="" >
<DIProperties>
<DIAttribute name="Table_Type" value="TABLE" />
<DIAttribute name="Estimated_Row_Count" value="50000" />
<DIAttribute name="Loader_Is_Template_Table" value="no" />
<DIAttribute name="Total_Number_Of_Rows_Processed" value="0" />
<DIAttribute name="Number_Of_Rows_Rejected" value="0" />
<DIAttribute name="Number_Of_Inserts" value="0" />
<DIAttribute name="Elapsed_Time_For_Load" value="0 Seconds" />
<DIAttribute name="db_alias_name" value="DWSTAGING_ALIAS" />
</DIProperties>
<DIColumn name="MD_BATCH_ID" datatype="DECIMAL" precision="19" scale="0" nullable="false" >
</DIColumn>
<DIColumn name="MD_PROCESS_ID" datatype="DECIMAL" precision="19" scale="0" nullable="false" >
</DIColumn>
<DIColumn name="MD_ACTIVESTATUSIND" datatype="VARCHAR" size="1" nullable="false" >
</DIColumn>
<DIColumn name="STATUS_NAME" datatype="VARCHAR" size="60" nullable="true" >
</DIColumn>
<DIColumn name="MD_LASTMODDATE" datatype="DATETIME" nullable="true" >
</DIColumn>
<DIColumn name="MD_DELETEDDATE" datatype="DATETIME" nullable="true" >
</DIColumn>
<DIColumn name="CODE" datatype="DOUBLE" nullable="true" >
</DIColumn>
<DIColumn name="MD_TRANSENDDATE" datatype="DATETIME" nullable="true" >
</DIColumn>
<DIColumn name="DESCRIPTION" datatype="VARCHAR" size="1024" nullable="true" >
</DIColumn>
<DIColumn name="MD_TRANSLASTIND" datatype="VARCHAR" size="1" nullable="false" >
</DIColumn>
<DIColumn name="MD_CREATEDDATE" datatype="DATETIME" nullable="true" >
</DIColumn>
<DIColumn name="MD_DURABLE_KEY" datatype="DECIMAL" precision="18" scale="0" nullable="true" >
</DIColumn>
<DIColumn name="PK_STATUS_ID" datatype="DECIMAL" precision="18" scale="0" nullable="false" >
</DIColumn>
<DIPrimaryKey>
<DIPrimaryKeyColumn name="PK_STATUS_ID" />
</DIPrimaryKey>
<DITableIndex name="PK_STATUS_DIM_XFRU" unique="true">
<DIIndexColumn name="PK_STATUS_ID" />
</DITableIndex>
</DITable>
<DITable name="STATUS_DIM_XFRU_V" owner="dwst" datastore="DWSTAGING_DS" database="XsStaging" description="" >
<DIProperties>
<DIAttribute name="Table_Type" value="TABLE" />
<DIAttribute name="Estimated_Row_Count" value="50000" />
<DIAttribute name="Loader_Is_Template_Table" value="no" />
<DIAttribute name="db_alias_name" value="DWSTAGING_ALIAS" />
</DIProperties>
<DIColumn name="MD_BATCH_ID" datatype="DECIMAL" precision="19" scale="0" nullable="false" >
</DIColumn>
<DIColumn name="MD_PROCESS_ID" datatype="DECIMAL" precision="19" scale="0" nullable="false" >
</DIColumn>
<DIColumn name="MD_ACTIVESTATUSIND" datatype="VARCHAR" size="1" nullable="false" >
</DIColumn>
<DIColumn name="STATUS_NAME" datatype="VARCHAR" size="60" nullable="true" >
</DIColumn>
<DIColumn name="MD_LASTMODDATE" datatype="DATETIME" nullable="true" >
</DIColumn>
<DIColumn name="MD_DELETEDDATE" datatype="DATETIME" nullable="true" >
</DIColumn>
<DIColumn name="CODE" datatype="DOUBLE" nullable="true" >
</DIColumn>
<DIColumn name="MD_TRANSENDDATE" datatype="DATETIME" nullable="true" >
</DIColumn>
<DIColumn name="DESCRIPTION" datatype="VARCHAR" size="1024" nullable="true" >
</DIColumn>
<DIColumn name="MD_TRANSLASTIND" datatype="VARCHAR" size="1" nullable="false" >
</DIColumn>
<DIColumn name="MD_CREATEDDATE" datatype="DATETIME" nullable="true" >
</DIColumn>
<DIColumn name="MD_DURABLE_KEY" datatype="DECIMAL" precision="18" scale="0" nullable="true" >
</DIColumn>
<DIColumn name="PK_STATUS_ID" datatype="DECIMAL" precision="18" scale="0" nullable="false" >
</DIColumn>
</DITable>
<DITable name="STATUS_ENTERPRISE_XREF" owner="dwst" datastore="DWSTAGING_DS" database="XsStaging" description="" >
<DIProperties>
<DIAttribute name="Table_Type" value="TABLE" />
<DIAttribute name="Estimated_Row_Count" value="50000" />
<DIAttribute name="Loader_Is_Template_Table" value="no" />
<DIAttribute name="Total_Number_Of_Rows_Processed" value="0" />
<DIAttribute name="Number_Of_Rows_Rejected" value="0" />
<DIAttribute name="Number_Of_Inserts" value="Cannot track number of inserts, updates or deletes for AutoCorrect Loads" />
<DIAttribute name="Number_Of_Updates" value="Cannot track number of inserts, updates or deletes for AutoCorrect Loads" />
<DIAttribute name="Number_Of_Deletes" value="Cannot track number of inserts, updates or deletes for AutoCorrect Loads" />
<DIAttribute name="Elapsed_Time_For_Load" value="0 Seconds" />
<DIAttribute name="db_alias_name" value="DWSTAGING_ALIAS" />
</DIProperties>
<DIColumn name="MD_BATCH_ID" datatype="DECIMAL" precision="19" scale="0" nullable="false" >
</DIColumn>
<DIColumn name="MD_PROCESS_ID" datatype="DECIMAL" precision="19" scale="0" nullable="false" >
</DIColumn>
<DIColumn name="ENTERPRISE_XREF_ID" datatype="DECIMAL" precision="18" scale="0" nullable="false" >
</DIColumn>
<DIColumn name="ENTERPRISE_KEY" datatype="DECIMAL" precision="18" scale="0" nullable="false" >
</DIColumn>
<DIColumn name="MD_CP_ID" datatype="DECIMAL" precision="28" scale="0" nullable="false" >
</DIColumn>
<DIColumn name="MODIFIEDDATETIME" datatype="DATETIME" nullable="true" >
</DIColumn>
<DIColumn name="SOURCE_INTEGRATION_XREF_ID" datatype="DECIMAL" precision="18" scale="0" nullable="true" >
</DIColumn>
<DIColumn name="UPDATE_STATUS" datatype="VARCHAR" size="20" nullable="false" >
</DIColumn>
<DIColumn name="BUSINESS_KEYVALUE" datatype="VARCHAR" size="100" nullable="true" >
</DIColumn>
<DIColumn name="CREATEDDATETIME" datatype="DATETIME" nullable="false" >
</DIColumn>
<DIPrimaryKey>
<DIPrimaryKeyColumn name="ENTERPRISE_XREF_ID" />
</DIPrimaryKey>
<DITableIndex name="PK_STATUS_ENTERPRISE_XREF" unique="true">
<DIIndexColumn name="ENTERPRISE_XREF_ID" />
</DITableIndex>
</DITable>
<DITable name="STATUS_KEY_LOOKUP" owner="dwst" datastore="DWSTAGING_DS" database="XsStaging" description="" >
<DIProperties>
<DIAttribute name="Table_Type" value="TABLE" />
<DIAttribute name="Estimated_Row_Count" value="50000" />
<DIAttribute name="Loader_Is_Template_Table" value="no" />
<DIAttribute name="Total_Number_Of_Rows_Processed" value="0" />
<DIAttribute name="Number_Of_Rows_Rejected" value="0" />
<DIAttribute name="Number_Of_Inserts" value="Cannot track number of inserts, updates or deletes for AutoCorrect Loads" />
<DIAttribute name="Number_Of_Updates" value="Cannot track number of inserts, updates or deletes for AutoCorrect Loads" />
<DIAttribute name="Number_Of_Deletes" value="Cannot track number of inserts, updates or deletes for AutoCorrect Loads" />
<DIAttribute name="Elapsed_Time_For_Load" value="0 Seconds" />
<DIAttribute name="db_alias_name" value="DWSTAGING_ALIAS" />
</DIProperties>
<DIColumn name="MD_BATCH_ID" datatype="DECIMAL" precision="19" scale="0" nullable="false" >
</DIColumn>
<DIColumn name="MD_PROCESS_ID" datatype="DECIMAL" precision="19" scale="0" nullable="false" >
</DIColumn>
<DIColumn name="PK_STATUS_LOOKUP_ID" datatype="DECIMAL" precision="18" scale="0" nullable="false" >
</DIColumn>
<DIColumn name="MD_FLAG" datatype="VARCHAR" size="10" nullable="false" >
</DIColumn>
<DIColumn name="MD_EFFECTIVESTARTEDDATE" datatype="DATETIME" nullable="true" >
</DIColumn>
<DIColumn name="MD_DURABLE_KEY" datatype="DECIMAL" precision="18" scale="0" nullable="false" >
</DIColumn>
<DIColumn name="MD_EFFECTIVEENDEDDATE" datatype="DATETIME" nullable="true" >
</DIColumn>
<DIColumn name="MD_CREATEDDATE" datatype="DATETIME" nullable="false" >
</DIColumn>
<DIColumn name="MD_LASTMODDATE" datatype="DATETIME" nullable="true" >
</DIColumn>
<DIColumn name="MD_SURROGATE_KEY" datatype="DECIMAL" precision="18" scale="0" nullable="false" >
</DIColumn>
<DIPrimaryKey>
<DIPrimaryKeyColumn name="PK_STATUS_LOOKUP_ID" />
</DIPrimaryKey>
<DITableIndex name="PK_STATUS_KEY_LOOKUP" unique="true">
<DIIndexColumn name="PK_STATUS_LOOKUP_ID" />
</DITableIndex>
</DITable>
<DITable name="STATUS_MSC" owner="dwst" datastore="DWSTAGING_DS" database="XsStaging" description="" >
<DIProperties>
<DIAttribute name="Table_Type" value="TABLE" />
<DIAttribute name="Estimated_Row_Count" value="50000" />
<DIAttribute name="Loader_Is_Template_Table" value="no" />
<DIAttribute name="Total_Number_Of_Rows_Processed" value="0" />
<DIAttribute name="Number_Of_Rows_Rejected" value="0" />
<DIAttribute name="Number_Of_Inserts" value="0" />
<DIAttribute name="Elapsed_Time_For_Load" value="0 Seconds" />
<DIAttribute name="db_alias_name" value="DWSTAGING_ALIAS" />
</DIProperties>
<DIColumn name="MD_BATCH_ID" datatype="DECIMAL" precision="19" scale="0" nullable="false" >
</DIColumn>
<DIColumn name="MD_PROCESS_ID" datatype="DECIMAL" precision="19" scale="0" nullable="false" >
</DIColumn>
<DIColumn name="MD_FLAG" datatype="VARCHAR" size="10" nullable="true" >
</DIColumn>
<DIColumn name="CODE" datatype="DOUBLE" nullable="true" >
</DIColumn>
<DIColumn name="MD_ENTERPRISE_KEY" datatype="DECIMAL" precision="18" scale="0" nullable="false" >
</DIColumn>
<DIColumn name="MD_BUSINESS_KEY" datatype="VARCHAR" size="100" nullable="true" >
</DIColumn>
<DIColumn name="DESCRIPTION" datatype="VARCHAR" size="1024" nullable="true" >
</DIColumn>
<DIColumn name="STATUS_NAME" datatype="VARCHAR" size="60" nullable="false" >
</DIColumn>
<DIPrimaryKey>
<DIPrimaryKeyColumn name="MD_ENTERPRISE_KEY" />
</DIPrimaryKey>
<DITableIndex name="PK_STATUS_MSC" unique="true">
<DIIndexColumn name="MD_ENTERPRISE_KEY" />
</DITableIndex>
</DITable>
<DITable name="BUDGET_DIM" owner="dwt" datastore="DW_DS" database="XsTarget" description="" >
<DIProperties>
<DIAttribute name="Table_Type" value="TABLE" />
<DIAttribute name="Estimated_Row_Count" value="50000" />
<DIAttribute name="Loader_Is_Template_Table" value="no" />
<DIAttribute name="Total_Number_Of_Rows_Processed" value="0" />
<DIAttribute name="Number_Of_Rows_Rejected" value="0" />
<DIAttribute name="Number_Of_Inserts" value="Cannot track number of inserts, updates or deletes for AutoCorrect Loads" />
<DIAttribute name="Number_Of_Updates" value="Cannot track number of inserts, updates or deletes for AutoCorrect Loads" />
<DIAttribute name="Number_Of_Deletes" value="Cannot track number of inserts, updates or deletes for AutoCorrect Loads" />
<DIAttribute name="Elapsed_Time_For_Load" value="0 Seconds" />
<DIAttribute name="db_alias_name" value="DW_ALIAS" />
</DIProperties>
<DIColumn name="MD_BATCH_ID" datatype="DECIMAL" precision="19" scale="0" nullable="false" >
</DIColumn>
<DIColumn name="MD_PROCESS_ID" datatype="DECIMAL" precision="19" scale="0" nullable="false" >
</DIColumn>
<DIColumn name="BUDGET_NAME" datatype="VARCHAR" size="60" nullable="false" >
</DIColumn>
<DIColumn name="BUDGET_NAME_ALT" datatype="VARCHAR" size="60" nullable="true" >
</DIColumn>
<DIColumn name="MD_ACTIVESTATUSIND" datatype="VARCHAR" size="1" nullable="false" >
</DIColumn>
<DIColumn name="MD_CREATEDDATE" datatype="DATETIME" nullable="false" >
</DIColumn>
<DIColumn name="MD_DELETEDDATE" datatype="DATETIME" nullable="true" >
</DIColumn>
<DIColumn name="MD_DURABLE_KEY" datatype="DECIMAL" precision="18" scale="0" nullable="false" >
</DIColumn>
<DIColumn name="MD_LASTMODDATE" datatype="DATETIME" nullable="true" >
</DIColumn>
<DIColumn name="MD_TRANSENDDATE" datatype="DATETIME" nullable="true" >
</DIColumn>
<DIColumn name="MD_TRANSLASTIND" datatype="VARCHAR" size="1" nullable="false" >
</DIColumn>
<DIColumn name="PK_BUDGET_ID" datatype="DECIMAL" precision="18" scale="0" nullable="false" >
</DIColumn>
<DIPrimaryKey>
<DIPrimaryKeyColumn name="PK_BUDGET_ID" />
</DIPrimaryKey>
<DITableIndex name="PK_BUDGET_DIM" unique="true">
<DIIndexColumn name="PK_BUDGET_ID" />
</DITableIndex>
</DITable>
<DITable name="COSTCATEGORY_DIM" owner="dwt" datastore="DW_DS" database="XsTarget" description="" >
<DIProperties>
<DIAttribute name="Table_Type" value="TABLE" />
<DIAttribute name="Estimated_Row_Count" value="50000" />
<DIAttribute name="Loader_Is_Template_Table" value="no" />
<DIAttribute name="Total_Number_Of_Rows_Processed" value="0" />
<DIAttribute name="Number_Of_Rows_Rejected" value="0" />
<DIAttribute name="Number_Of_Inserts" value="0" />
<DIAttribute name="Number_Of_Updates" value="0" />
<DIAttribute name="Number_Of_Deletes" value="0" />
<DIAttribute name="Elapsed_Time_For_Load" value="0 Seconds" />
<DIAttribute name="db_alias_name" value="DW_ALIAS" />
</DIProperties>
<DIColumn name="MD_BATCH_ID" datatype="DECIMAL" precision="19" scale="0" nullable="false" >
</DIColumn>
<DIColumn name="MD_PROCESS_ID" datatype="DECIMAL" precision="19" scale="0" nullable="false" >
</DIColumn>
<DIColumn name="ACCOUNTING_CODE" datatype="VARCHAR" size="60" nullable="true" >
</DIColumn>
<DIColumn name="COSTCATEGORY_NAME" datatype="VARCHAR" size="60" nullable="false" >
</DIColumn>
<DIColumn name="COSTCATEGORY_NAME_ALT" datatype="VARCHAR" size="60" nullable="true" >
</DIColumn>
<DIColumn name="DETAILED_CATEGORY" datatype="VARCHAR" size="60" nullable="true" >
</DIColumn>
<DIColumn name="MD_ACTIVESTATUSIND" datatype="VARCHAR" size="1" nullable="false" >
</DIColumn>
<DIColumn name="MD_CREATEDDATE" datatype="DATETIME" nullable="false" >
</DIColumn>
<DIColumn name="MD_DELETEDDATE" datatype="DATETIME" nullable="true" >
</DIColumn>
<DIColumn name="MD_DURABLE_KEY" datatype="DECIMAL" precision="18" scale="0" nullable="false" >
</DIColumn>
<DIColumn name="MD_LASTMODDATE" datatype="DATETIME" nullable="true" >
</DIColumn>
<DIColumn name="MD_TRANSENDDATE" datatype="DATETIME" nullable="true" >
</DIColumn>
<DIColumn name="MD_TRANSLASTIND" datatype="VARCHAR" size="1" nullable="false" >
</DIColumn>
<DIColumn name="PK_COSTCATEGORY_ID" datatype="DECIMAL" precision="18" scale="0" nullable="false" >
</DIColumn>
<DIColumn name="SUB_CATEGORY" datatype="VARCHAR" size="60" nullable="true" >
</DIColumn>
<DIPrimaryKey>
<DIPrimaryKeyColumn name="PK_COSTCATEGORY_ID" />
</DIPrimaryKey>
<DITableIndex name="PK_COSTCATEGORY_DIM" unique="true">
<DIIndexColumn name="PK_COSTCATEGORY_ID" />
</DITableIndex>
</DITable>
<DITable name="ITFUNCTION_DIM" owner="dwt" datastore="DW_DS" database="XsTarget" description="" >
<DIProperties>
<DIAttribute name="Table_Type" value="TABLE" />
<DIAttribute name="Estimated_Row_Count" value="50000" />
<DIAttribute name="Loader_Is_Template_Table" value="no" />
<DIAttribute name="Total_Number_Of_Rows_Processed" value="0" />
<DIAttribute name="Number_Of_Rows_Rejected" value="0" />
<DIAttribute name="Number_Of_Inserts" value="0" />
<DIAttribute name="Number_Of_Updates" value="0" />
<DIAttribute name="Number_Of_Deletes" value="0" />
<DIAttribute name="Elapsed_Time_For_Load" value="1 Seconds" />
<DIAttribute name="db_alias_name" value="DW_ALIAS" />
</DIProperties>
<DIColumn name="MD_BATCH_ID" datatype="DECIMAL" precision="19" scale="0" nullable="false" >
</DIColumn>
<DIColumn name="MD_PROCESS_ID" datatype="DECIMAL" precision="19" scale="0" nullable="false" >
</DIColumn>
<DIColumn name="ITFUNCTION_NAME" datatype="VARCHAR" size="60" nullable="false" >
</DIColumn>
<DIColumn name="ITFUNCTION_NAME_ALT" datatype="VARCHAR" size="60" nullable="true" >
</DIColumn>
<DIColumn name="MD_ACTIVESTATUSIND" datatype="VARCHAR" size="1" nullable="false" >
</DIColumn>
<DIColumn name="MD_CREATEDDATE" datatype="DATETIME" nullable="false" >
</DIColumn>
<DIColumn name="MD_DELETEDDATE" datatype="DATETIME" nullable="true" >
</DIColumn>
<DIColumn name="MD_DURABLE_KEY" datatype="DECIMAL" precision="18" scale="0" nullable="false" >
</DIColumn>
<DIColumn name="MD_LASTMODDATE" datatype="DATETIME" nullable="true" >
</DIColumn>
<DIColumn name="MD_TRANSENDDATE" datatype="DATETIME" nullable="true" >
</DIColumn>
<DIColumn name="MD_TRANSLASTIND" datatype="VARCHAR" size="1" nullable="false" >
</DIColumn>
<DIColumn name="PK_ITFUNCTION_ID" datatype="DECIMAL" precision="18" scale="0" nullable="false" >
</DIColumn>
<DIPrimaryKey>
<DIPrimaryKeyColumn name="PK_ITFUNCTION_ID" />
</DIPrimaryKey>
<DITableIndex name="PK_ITFUNCTION_DIM" unique="true">
<DIIndexColumn name="PK_ITFUNCTION_ID" />
</DITableIndex>
</DITable>
<DITable name="MEASURETYPE_DIM" owner="dwt" datastore="DW_DS" database="XsTarget" description="" >
<DIProperties>
<DIAttribute name="Table_Type" value="TABLE" />
<DIAttribute name="Estimated_Row_Count" value="50000" />
<DIAttribute name="Loader_Is_Template_Table" value="no" />
<DIAttribute name="Total_Number_Of_Rows_Processed" value="0" />
<DIAttribute name="Number_Of_Rows_Rejected" value="0" />
<DIAttribute name="Number_Of_Inserts" value="Cannot track number of inserts, updates or deletes for AutoCorrect Loads" />
<DIAttribute name="Number_Of_Updates" value="Cannot track number of inserts, updates or deletes for AutoCorrect Loads" />
<DIAttribute name="Number_Of_Deletes" value="Cannot track number of inserts, updates or deletes for AutoCorrect Loads" />
<DIAttribute name="Elapsed_Time_For_Load" value="0 Seconds" />
<DIAttribute name="db_alias_name" value="DW_ALIAS" />
</DIProperties>
<DIColumn name="MD_BATCH_ID" datatype="DECIMAL" precision="19" scale="0" nullable="false" >
</DIColumn>
<DIColumn name="MD_PROCESS_ID" datatype="DECIMAL" precision="19" scale="0" nullable="false" >
</DIColumn>
<DIColumn name="DESCRIPTION" datatype="VARCHAR" size="1024" nullable="true" >
</DIColumn>
<DIColumn name="MD_ACTIVESTATUSIND" datatype="VARCHAR" size="1" nullable="false" >
</DIColumn>
<DIColumn name="MD_CREATEDDATE" datatype="DATETIME" nullable="false" >
</DIColumn>
<DIColumn name="MD_DELETEDDATE" datatype="DATETIME" nullable="true" >
</DIColumn>
<DIColumn name="MD_DURABLE_KEY" datatype="DECIMAL" precision="18" scale="0" nullable="false" >
</DIColumn>
<DIColumn name="MD_LASTMODDATE" datatype="DATETIME" nullable="true" >
</DIColumn>
<DIColumn name="MD_TRANSENDDATE" datatype="DATETIME" nullable="true" >
</DIColumn>
<DIColumn name="MD_TRANSLASTIND" datatype="VARCHAR" size="1" nullable="false" >
</DIColumn>
<DIColumn name="MEASURETYPE_NAME" datatype="VARCHAR" size="60" nullable="false" >
</DIColumn>
<DIColumn name="PK_MEASURETYPE_ID" datatype="DECIMAL" precision="18" scale="0" nullable="false" >
</DIColumn>
<DIPrimaryKey>
<DIPrimaryKeyColumn name="PK_MEASURETYPE_ID" />
</DIPrimaryKey>
<DITableIndex name="PK_MEASURETYPE_DIM" unique="true">
<DIIndexColumn name="PK_MEASURETYPE_ID" />
</DITableIndex>
</DITable>
<DITable name="STATUS_DIM" owner="dwt" datastore="DW_DS" database="XsTarget" description="" >
<DIProperties>
<DIAttribute name="Table_Type" value="TABLE" />
<DIAttribute name="Estimated_Row_Count" value="50000" />
<DIAttribute name="Loader_Is_Template_Table" value="no" />
<DIAttribute name="Total_Number_Of_Rows_Processed" value="0" />
<DIAttribute name="Number_Of_Rows_Rejected" value="0" />
<DIAttribute name="Number_Of_Inserts" value="Cannot track number of inserts, updates or deletes for AutoCorrect Loads" />
<DIAttribute name="Number_Of_Updates" value="Cannot track number of inserts, updates or deletes for AutoCorrect Loads" />
<DIAttribute name="Number_Of_Deletes" value="Cannot track number of inserts, updates or deletes for AutoCorrect Loads" />
<DIAttribute name="Elapsed_Time_For_Load" value="0 Seconds" />
<DIAttribute name="db_alias_name" value="DW_ALIAS" />
</DIProperties>
<DIColumn name="MD_BATCH_ID" datatype="DECIMAL" precision="19" scale="0" nullable="false" >
</DIColumn>
<DIColumn name="MD_PROCESS_ID" datatype="DECIMAL" precision="19" scale="0" nullable="false" >
</DIColumn>
<DIColumn name="CODE" datatype="DOUBLE" nullable="true" >
</DIColumn>
<DIColumn name="DESCRIPTION" datatype="VARCHAR" size="1024" nullable="true" >
</DIColumn>
<DIColumn name="MD_ACTIVESTATUSIND" datatype="VARCHAR" size="1" nullable="false" >
</DIColumn>
<DIColumn name="MD_CREATEDDATE" datatype="DATETIME" nullable="false" >
</DIColumn>
<DIColumn name="MD_DELETEDDATE" datatype="DATETIME" nullable="true" >
</DIColumn>
<DIColumn name="MD_DURABLE_KEY" datatype="DECIMAL" precision="18" scale="0" nullable="false" >
</DIColumn>
<DIColumn name="MD_LASTMODDATE" datatype="DATETIME" nullable="true" >
</DIColumn>
<DIColumn name="MD_TRANSENDDATE" datatype="DATETIME" nullable="true" >
</DIColumn>
<DIColumn name="MD_TRANSLASTIND" datatype="VARCHAR" size="1" nullable="false" >
</DIColumn>
<DIColumn name="PK_STATUS_ID" datatype="DECIMAL" precision="18" scale="0" nullable="false" >
</DIColumn>
<DIColumn name="STATUS_NAME" datatype="VARCHAR" size="60" nullable="false" >
</DIColumn>
<DIPrimaryKey>
<DIPrimaryKeyColumn name="PK_STATUS_ID" />
</DIPrimaryKey>
<DITableIndex name="PK_STATUS_DIM" unique="true">
<DIIndexColumn name="PK_STATUS_ID" />
</DITableIndex>
</DITable>
<DITable name="FILE_LOCATION_INFO" owner="dwmetadata" datastore="DW_METADATA_DS" database="XsStaging" description="" >
<DIProperties>
<DIAttribute name="Table_Type" value="TABLE" />
<DIAttribute name="Estimated_Row_Count" value="50000" />
<DIAttribute name="Loader_Is_Template_Table" value="no" />
<DIAttribute name="db_alias_name" value="DW_METADATA_ALIAS" />
</DIProperties>
<DIColumn name="ID" datatype="DECIMAL" precision="10" scale="0" nullable="false" >
</DIColumn>
<DIColumn name="SOURCE" datatype="VARCHAR" size="30" nullable="true" >
</DIColumn>
<DIColumn name="FILE_LOCATION" datatype="VARCHAR" size="200" nullable="true" >
</DIColumn>
</DITable>
<DIExcelDatastore name="AM_CostCategory_EXTERNAL" typeId="3" >
<DIProperties>
<DIAttribute name="SavedAfterCheckOut" value="YES"/>
<DIAttribute name="Date_modified" value="Tue Apr 16 12:48:37 2013"/>
<DIAttribute name="Date_created" value="Mon Aug 26 11:28:17 2013"/>
</DIProperties>
<DISchema>
<DIElement name="SRC_PRIMARY_KEY" datatype="VARCHAR" size="100" >
</DIElement>
<DIElement name="SRC_APP" datatype="VARCHAR" size="255" >
</DIElement>
<DIElement name="SRC_COSTCATEGORY_NAME" datatype="VARCHAR" size="255" >
</DIElement>
<DIElement name="TGT_COSTCATEGORY_NAME" datatype="VARCHAR" size="255" >
</DIElement>
<DIElement name="COSTCATEGORY_NAME_ALT" datatype="VARCHAR" size="255" >
</DIElement>
<DIElement name="ACCOUNTING_CODE" datatype="VARCHAR" size="255" >
</DIElement>
<DIElement name="CONTENT_PACK_ID" datatype="INT" >
</DIElement>
<DIElement name="SUB_CATEGORY" datatype="VARCHAR" size="255" >
</DIElement>
<DIElement name="DETAILED_CATEGORY" datatype="VARCHAR" size="255" >
</DIElement>
</DISchema>
<DIAttributes>
<DIAttribute name="MSExcel_file_dir" value="$G_EXTN_FILELOCATION"/>
<DIAttribute name="MSExcel_file_name" value="CostCategory.xls"/>
<DIAttribute name="MSExcel_worksheet" value="DATA"/>
<DIAttribute name="MSExcel_worksheet_all" value="yes"/>
<DIAttribute name="MSExcel_worksheet_is_number" value="no"/>
<DIAttribute name="MSExcel_worksheet_use_1row_names" value="yes"/>
<DIAttribute name="locale_codepage" value="utf-8"/>
<DIAttribute name="locale_language" value="&lt;default&gt;"/>
<DIAttribute name="locale_territory" value="&lt;default&gt;"/>
</DIAttributes>
</DIExcelDatastore>
<DIExcelDatastore name="BUDGET_EXTN_SOURCE_XLS" typeId="3" >
<DIProperties>
<DIAttribute name="SavedAfterCheckOut" value="YES"/>
<DIAttribute name="Date_modified" value="Wed Mar 28 17:54:29 2012"/>
<DIAttribute name="Date_created" value="Mon Aug 26 11:26:20 2013"/>
</DIProperties>
<DISchema>
<DIElement name="SRC_PRIMARY_KEY" datatype="NUMERIC" precision="28" scale="0" >
</DIElement>
<DIElement name="SRC_APP" datatype="VARCHAR" size="255" >
</DIElement>
<DIElement name="SRC_BUDGET_NAME" datatype="VARCHAR" size="255" >
</DIElement>
<DIElement name="TGT_BUDGET_NAME" datatype="VARCHAR" size="255" >
</DIElement>
<DIElement name="BUDGET_NAME_ALT" datatype="VARCHAR" size="255" >
</DIElement>
<DIElement name="CONTENT_PACK_ID" datatype="INT" >
</DIElement>
</DISchema>
<DIAttributes>
<DIAttribute name="MSExcel_file_dir" value="$G_EXTN_FILELOCATION"/>
<DIAttribute name="MSExcel_file_name" value="BUDGET.xls"/>
<DIAttribute name="MSExcel_worksheet" value="DATA"/>
<DIAttribute name="MSExcel_worksheet_all" value="yes"/>
<DIAttribute name="MSExcel_worksheet_is_number" value="no"/>
<DIAttribute name="MSExcel_worksheet_use_1row_names" value="yes"/>
<DIAttribute name="locale_codepage" value="&lt;default&gt;"/>
<DIAttribute name="locale_language" value="&lt;default&gt;"/>
<DIAttribute name="locale_territory" value="&lt;default&gt;"/>
</DIAttributes>
</DIExcelDatastore>
<DIExcelDatastore name="ITFUNCTIONS_XTN_SOURCE_XLS" typeId="3" >
<DIProperties>
<DIAttribute name="SavedAfterCheckOut" value="YES"/>
<DIAttribute name="Date_created" value="Mon Aug 26 11:24:18 2013"/>
<DIAttribute name="Date_modified" value="Tue Mar 03 14:23:38 2009"/>
</DIProperties>
<DISchema>
<DIElement name="ITFUNCTION_NAME" datatype="VARCHAR" size="255" >
</DIElement>
<DIElement name="ITFUNCTION_NAME_ALT" datatype="VARCHAR" size="255" >
</DIElement>
</DISchema>
<DIAttributes>
<DIAttribute name="MSExcel_file_dir" value="$G_EXTN_FILELOCATION"/>
<DIAttribute name="MSExcel_file_name" value="ITFUNCTIONS.xls"/>
<DIAttribute name="MSExcel_worksheet" value="DATA"/>
<DIAttribute name="MSExcel_worksheet_all" value="yes"/>
<DIAttribute name="MSExcel_worksheet_is_number" value="no"/>
<DIAttribute name="MSExcel_worksheet_use_1row_names" value="yes"/>
<DIAttribute name="locale_codepage" value="&lt;default&gt;"/>
<DIAttribute name="locale_language" value="&lt;default&gt;"/>
<DIAttribute name="locale_territory" value="&lt;default&gt;"/>
</DIAttributes>
</DIExcelDatastore>
<DIExcelDatastore name="MEASURETYPE_EXTN_SOURCE_XLS" typeId="3" >
<DIProperties>
<DIAttribute name="SavedAfterCheckOut" value="YES"/>
<DIAttribute name="Date_created" value="Mon Aug 26 11:30:10 2013"/>
<DIAttribute name="Date_modified" value="Sun Apr 03 14:03:49 2011"/>
</DIProperties>
<DISchema>
<DIElement name="SOURCE_PRIMARYKEY" datatype="INT" >
</DIElement>
<DIElement name="SOURCE_NAME" datatype="VARCHAR" size="60" >
</DIElement>
<DIElement name="SOURCE_MEASURE_NAME" datatype="VARCHAR" size="100" >
</DIElement>
<DIElement name="TARGET_MEASURE_NAME" datatype="VARCHAR" size="100" >
</DIElement>
<DIElement name="TARGET_MEASURE_DESC" datatype="VARCHAR" size="256" >
</DIElement>
</DISchema>
<DIAttributes>
<DIAttribute name="MSExcel_file_dir" value="$G_EXTN_FILELOCATION"/>
<DIAttribute name="MSExcel_file_name" value="MeasureType.xls"/>
<DIAttribute name="MSExcel_worksheet" value="DATA"/>
<DIAttribute name="MSExcel_worksheet_all" value="yes"/>
<DIAttribute name="MSExcel_worksheet_is_number" value="no"/>
<DIAttribute name="MSExcel_worksheet_use_1row_names" value="yes"/>
<DIAttribute name="locale_codepage" value="&lt;default&gt;"/>
<DIAttribute name="locale_language" value="&lt;default&gt;"/>
<DIAttribute name="locale_territory" value="&lt;default&gt;"/>
</DIAttributes>
</DIExcelDatastore>
<DIExcelDatastore name="STATUS_EXTN_SOURCE_XLS" typeId="3" >
<DIProperties>
<DIAttribute name="SavedAfterCheckOut" value="YES"/>
<DIAttribute name="Date_created" value="Mon Aug 26 11:35:30 2013"/>
<DIAttribute name="Date_modified" value="Sun Apr 03 15:30:03 2011"/>
</DIProperties>
<DISchema>
<DIElement name="SOURCE_PRIMARYKEY" datatype="INT" >
</DIElement>
<DIElement name="SOURCE_NAME" datatype="VARCHAR" size="100" >
</DIElement>
<DIElement name="SOURCE_STATUS_NAME" datatype="VARCHAR" size="100" >
</DIElement>
<DIElement name="TARGET_STATUS_NAME" datatype="VARCHAR" size="100" >
</DIElement>
<DIElement name="TARGET_STATUS_CODE" datatype="INT" >
</DIElement>
<DIElement name="DESCRIPTION" datatype="VARCHAR" size="1024" >
</DIElement>
</DISchema>
<DIAttributes>
<DIAttribute name="MSExcel_file_dir" value="$G_EXTN_FILELOCATION"/>
<DIAttribute name="MSExcel_file_name" value="STATUS.xls"/>
<DIAttribute name="MSExcel_worksheet" value="DATA"/>
<DIAttribute name="MSExcel_worksheet_all" value="yes"/>
<DIAttribute name="MSExcel_worksheet_is_number" value="no"/>
<DIAttribute name="MSExcel_worksheet_use_1row_names" value="yes"/>
<DIAttribute name="locale_codepage" value="&lt;default&gt;"/>
<DIAttribute name="locale_language" value="&lt;default&gt;"/>
<DIAttribute name="locale_territory" value="&lt;default&gt;"/>
</DIAttributes>
</DIExcelDatastore>
<DIScriptFunction name="ABC_ENDJB_FN" typeId="11" >
<DIUIOptions>
<DIAttribute name="ui_script_text" value="#UPDATE STEP_RUNTIME RECORD WITH SUCCESS STATUS AND END TIME&#xA;#GET JOB_ID&#xA;&#xA;$l_status = 'SUCCESS';&#xA;#$now = sysdate();&#xA;&#xA;$l_wf_failed_count = sql('DW_ABC_DS',' select count(status) from JOB_STREAM_STEP_DETAIL_RT&#xA;                    where MD_PROCESS_ID = {$p_process_id} AND (status = \'ERROR\' or status = \'MAX_EXECUTION_TIME_EXCEEDED\')');&#xA;ETL_PRINT( '**     wf_failed_count = {$l_wf_failed_count}' );&#xA;&#xA;$l_wf_success_count = sql('DW_ABC_DS',' select count(status) from JOB_STREAM_STEP_DETAIL_RT&#xA;                     where MD_PROCESS_ID = {$p_process_id} AND status = \'SUCCESS\'');&#xA;ETL_PRINT( '**     wf_success_count = {$l_wf_success_count}' );&#xA;&#xA;$l_am_failed_count = sql('DW_ABC_DS',' select count(status) from AUDIT_METRIC&#xA;                    where MD_PROCESS_ID = {$p_process_id} AND (status = \'ERROR\' or status = \'MAX_EXECUTION_TIME_EXCEEDED\')');&#xA;ETL_PRINT( '**     am_failed_count = {$l_am_failed_count}' );&#xA;&#xA;$l_am_warning_count = sql('DW_ABC_DS',' select count(status) from AUDIT_METRIC&#xA;                    where MD_PROCESS_ID = {$p_process_id} AND status = \'WARNING\'');&#xA;ETL_PRINT( '**     am_warning_count = {$l_am_warning_count}' );&#xA;&#xA;$l_am_success_count = sql('DW_ABC_DS',' select count(status) from AUDIT_METRIC&#xA;                    where MD_PROCESS_ID = {$p_process_id} AND status = \'SUCCESS\'');&#xA;ETL_PRINT( '**     am_success_count = {$l_am_success_count}' );&#xA;&#xA;$l_status_info = 'WFs statuses: success: ' || $l_wf_success_count || ', error: '  || $l_wf_failed_count ||' || Audit metrics: success: ' || $l_am_success_count || ', warning: ' || $l_am_warning_count || ', error: ' || $l_am_failed_count || '.';&#xA;&#xA;if ($l_wf_failed_count &gt; 0)&#xA;begin&#xA;&#x9;$l_status = 'ERROR';&#xA;&#x9;$l_reco_action =  'Drill to WF level to access the error message. ';&#xA;end&#x9;&#xA;else if ($l_am_failed_count &gt; 0)&#xA;begin&#xA;&#x9;$l_status = 'ERROR'; &#xA;&#x9;$l_reco_action = $l_reco_action || 'Refer to failed metrics. ';&#xA;end&#xA;else if ($l_am_warning_count &gt; 0)&#xA;begin&#xA;&#x9;$l_status = 'WARNING';&#xA;&#x9;$l_reco_action = $l_reco_action || 'Check WARNING metrics. ';&#xA;end&#xA;&#xA;&#xA;#sql('DW_ABC_DS','update JOB_STREAM_STEP_RT&#xA;#               set STATUS = {$l_status}, STATE = \'FINISHED\' , END_TIME = {sysdate()}, STATUS_INFO = {$l_status_info}, RECO_ACTION = {$l_reco_action}&#xA;#               where MD_PROCESS_ID = {$p_process_id}');&#xA;&#xA;sql('DW_ABC_DS','update JOB_STREAM_STEP_RT&#xA;               set STATUS = {$l_status}, STATE = \'FINISHED\' , END_TIME = convert(varchar(25),convert(datetime,getdate(),111),127), STATUS_INFO = {$l_status_info}, RECO_ACTION = {$l_reco_action}&#xA;               where MD_PROCESS_ID = {$p_process_id}');&#xA;ETL_PRINT( '**' );&#xA;ETL_PRINT( '**' );&#xA;ETL_PRINT( '** The Job {job_name()} is ending' );&#xA;ETL_PRINT( '**   status: {$l_status}' );&#xA;ETL_PRINT( '**   explanation: {$l_status_info})' );&#xA;ETL_PRINT( '********************************' );&#xA;ETL_PRINT( '********************************' );&#xA;&#xA;return NULL;&#xA;"/>
</DIUIOptions>
<DIProperties>
<DIAttribute name="Acta_user_func_category" value="User_Script_Function"/>
</DIProperties>
<DIParameters><DIElement paramType="IN" name="$p_process_id" datatype="DECIMAL" precision="19" scale="0" >
</DIElement>
</DIParameters>
<DIVariables><DIElement paramType="LOCAL" name="$l_wf_failed_count" datatype="INT" >
</DIElement>
<DIElement paramType="LOCAL" name="$l_status" datatype="VARCHAR" size="10" >
</DIElement>
<DIElement paramType="LOCAL" name="$l_wf_success_count" datatype="INT" >
</DIElement>
<DIElement paramType="LOCAL" name="$l_status_info" datatype="VARCHAR" size="400" >
</DIElement>
<DIElement paramType="LOCAL" name="$l_am_failed_count" datatype="INT" >
</DIElement>
<DIElement paramType="LOCAL" name="$l_am_warning_count" datatype="INT" >
</DIElement>
<DIElement paramType="LOCAL" name="$l_am_success_count" datatype="INT" >
</DIElement>
<DIElement paramType="LOCAL" name="$l_reco_action" datatype="VARCHAR" size="4000" >
</DIElement>
</DIVariables>
<DIFunctionReturn datatype="INT" />
<DISteps>
<DIAssignmentStep typeId="12" variable="$l_status" >
<DIExpression isString="true" expr="'SUCCESS'" >
<CONSTANT value="SUCCESS" datatype="VARCHAR" size="7" />
</DIExpression>
</DIAssignmentStep>
<DIAssignmentStep typeId="12" variable="$l_wf_failed_count" >
<DIExpression isString="true" expr="sql('DW_ABC_DS', ' select count(status) from JOB_STREAM_STEP_DETAIL_RT&#xA;                    where MD_PROCESS_ID = {$p_process_id} AND (status = \'ERROR\' or status = \'MAX_EXECUTION_TIME_EXCEEDED\')')" >
<FUNCTION_CALL name="sql"  type="DI" >
<CONSTANT value="DW_ABC_DS" datatype="VARCHAR" size="9" />
<CONSTANT value=" select count(status) from JOB_STREAM_STEP_DETAIL_RT&#xA;                    where MD_PROCESS_ID = {$p_process_id} AND (status = 'ERROR' or status = 'MAX_EXECUTION_TIME_EXCEEDED')" datatype="VARCHAR" size="175" />
</FUNCTION_CALL>
</DIExpression>
</DIAssignmentStep>
<DIFunctionCallStep typeId="23" >
<DIExpression isString="true" expr="etl_print('**     wf_failed_count = {$l_wf_failed_count}')" >
<FUNCTION_CALL name="etl_print"  type="DI" >
<CONSTANT value="**     wf_failed_count = {$l_wf_failed_count}" datatype="VARCHAR" size="45" />
</FUNCTION_CALL>
</DIExpression>
</DIFunctionCallStep>
<DIAssignmentStep typeId="12" variable="$l_wf_success_count" >
<DIExpression isString="true" expr="sql('DW_ABC_DS', ' select count(status) from JOB_STREAM_STEP_DETAIL_RT&#xA;                     where MD_PROCESS_ID = {$p_process_id} AND status = \'SUCCESS\'')" >
<FUNCTION_CALL name="sql"  type="DI" >
<CONSTANT value="DW_ABC_DS" datatype="VARCHAR" size="9" />
<CONSTANT value=" select count(status) from JOB_STREAM_STEP_DETAIL_RT&#xA;                     where MD_PROCESS_ID = {$p_process_id} AND status = 'SUCCESS'" datatype="VARCHAR" size="134" />
</FUNCTION_CALL>
</DIExpression>
</DIAssignmentStep>
<DIFunctionCallStep typeId="23" >
<DIExpression isString="true" expr="etl_print('**     wf_success_count = {$l_wf_success_count}')" >
<FUNCTION_CALL name="etl_print"  type="DI" >
<CONSTANT value="**     wf_success_count = {$l_wf_success_count}" datatype="VARCHAR" size="47" />
</FUNCTION_CALL>
</DIExpression>
</DIFunctionCallStep>
<DIAssignmentStep typeId="12" variable="$l_am_failed_count" >
<DIExpression isString="true" expr="sql('DW_ABC_DS', ' select count(status) from AUDIT_METRIC&#xA;                    where MD_PROCESS_ID = {$p_process_id} AND (status = \'ERROR\' or status = \'MAX_EXECUTION_TIME_EXCEEDED\')')" >
<FUNCTION_CALL name="sql"  type="DI" >
<CONSTANT value="DW_ABC_DS" datatype="VARCHAR" size="9" />
<CONSTANT value=" select count(status) from AUDIT_METRIC&#xA;                    where MD_PROCESS_ID = {$p_process_id} AND (status = 'ERROR' or status = 'MAX_EXECUTION_TIME_EXCEEDED')" datatype="VARCHAR" size="162" />
</FUNCTION_CALL>
</DIExpression>
</DIAssignmentStep>
<DIFunctionCallStep typeId="23" >
<DIExpression isString="true" expr="etl_print('**     am_failed_count = {$l_am_failed_count}')" >
<FUNCTION_CALL name="etl_print"  type="DI" >
<CONSTANT value="**     am_failed_count = {$l_am_failed_count}" datatype="VARCHAR" size="45" />
</FUNCTION_CALL>
</DIExpression>
</DIFunctionCallStep>
<DIAssignmentStep typeId="12" variable="$l_am_warning_count" >
<DIExpression isString="true" expr="sql('DW_ABC_DS', ' select count(status) from AUDIT_METRIC&#xA;                    where MD_PROCESS_ID = {$p_process_id} AND status = \'WARNING\'')" >
<FUNCTION_CALL name="sql"  type="DI" >
<CONSTANT value="DW_ABC_DS" datatype="VARCHAR" size="9" />
<CONSTANT value=" select count(status) from AUDIT_METRIC&#xA;                    where MD_PROCESS_ID = {$p_process_id} AND status = 'WARNING'" datatype="VARCHAR" size="120" />
</FUNCTION_CALL>
</DIExpression>
</DIAssignmentStep>
<DIFunctionCallStep typeId="23" >
<DIExpression isString="true" expr="etl_print('**     am_warning_count = {$l_am_warning_count}')" >
<FUNCTION_CALL name="etl_print"  type="DI" >
<CONSTANT value="**     am_warning_count = {$l_am_warning_count}" datatype="VARCHAR" size="47" />
</FUNCTION_CALL>
</DIExpression>
</DIFunctionCallStep>
<DIAssignmentStep typeId="12" variable="$l_am_success_count" >
<DIExpression isString="true" expr="sql('DW_ABC_DS', ' select count(status) from AUDIT_METRIC&#xA;                    where MD_PROCESS_ID = {$p_process_id} AND status = \'SUCCESS\'')" >
<FUNCTION_CALL name="sql"  type="DI" >
<CONSTANT value="DW_ABC_DS" datatype="VARCHAR" size="9" />
<CONSTANT value=" select count(status) from AUDIT_METRIC&#xA;                    where MD_PROCESS_ID = {$p_process_id} AND status = 'SUCCESS'" datatype="VARCHAR" size="120" />
</FUNCTION_CALL>
</DIExpression>
</DIAssignmentStep>
<DIFunctionCallStep typeId="23" >
<DIExpression isString="true" expr="etl_print('**     am_success_count = {$l_am_success_count}')" >
<FUNCTION_CALL name="etl_print"  type="DI" >
<CONSTANT value="**     am_success_count = {$l_am_success_count}" datatype="VARCHAR" size="47" />
</FUNCTION_CALL>
</DIExpression>
</DIFunctionCallStep>
<DIAssignmentStep typeId="12" variable="$l_status_info" >
<DIExpression isString="true" expr="(((((((((('WFs statuses: success: ' || $l_wf_success_count) || ', error: ') || $l_wf_failed_count) || ' || Audit metrics: success: ') || $l_am_success_count) || ', warning: ') || $l_am_warning_count) || ', error: ') || $l_am_failed_count) || '.')" >
<CONCAT>
<CONCAT>
<CONCAT>
<CONCAT>
<CONCAT>
<CONCAT>
<CONCAT>
<CONCAT>
<CONCAT>
<CONCAT>
<CONSTANT value="WFs statuses: success: " datatype="VARCHAR" size="23" />
<VARIABLE_REFERENCE name="$l_wf_success_count" />
</CONCAT>
<CONSTANT value=", error: " datatype="VARCHAR" size="9" />
</CONCAT>
<VARIABLE_REFERENCE name="$l_wf_failed_count" />
</CONCAT>
<CONSTANT value=" || Audit metrics: success: " datatype="VARCHAR" size="28" />
</CONCAT>
<VARIABLE_REFERENCE name="$l_am_success_count" />
</CONCAT>
<CONSTANT value=", warning: " datatype="VARCHAR" size="11" />
</CONCAT>
<VARIABLE_REFERENCE name="$l_am_warning_count" />
</CONCAT>
<CONSTANT value=", error: " datatype="VARCHAR" size="9" />
</CONCAT>
<VARIABLE_REFERENCE name="$l_am_failed_count" />
</CONCAT>
<CONSTANT value="." datatype="VARCHAR" size="1" />
</CONCAT>
</DIExpression>
</DIAssignmentStep>
<DIIfStep typeId="2" >
<DIExpression isString="true" expr="($l_wf_failed_count &gt; 0)" >
<LOGICAL_OP op="GT">
<VARIABLE_REFERENCE name="$l_wf_failed_count" />
<CONSTANT value="0" datatype="INT" />
</LOGICAL_OP>
</DIExpression>
<DIIf>
<DIAssignmentStep typeId="12" variable="$l_status" >
<DIExpression isString="true" expr="'ERROR'" >
<CONSTANT value="ERROR" datatype="VARCHAR" size="5" />
</DIExpression>
</DIAssignmentStep>
<DIAssignmentStep typeId="12" variable="$l_reco_action" >
<DIExpression isString="true" expr="'Drill to WF level to access the error message. '" >
<CONSTANT value="Drill to WF level to access the error message. " datatype="VARCHAR" size="47" />
</DIExpression>
</DIAssignmentStep>
</DIIf>
<DIElse>
<DIIfStep typeId="2" >
<DIExpression isString="true" expr="($l_am_failed_count &gt; 0)" >
<LOGICAL_OP op="GT">
<VARIABLE_REFERENCE name="$l_am_failed_count" />
<CONSTANT value="0" datatype="INT" />
</LOGICAL_OP>
</DIExpression>
<DIIf>
<DIAssignmentStep typeId="12" variable="$l_status" >
<DIExpression isString="true" expr="'ERROR'" >
<CONSTANT value="ERROR" datatype="VARCHAR" size="5" />
</DIExpression>
</DIAssignmentStep>
<DIAssignmentStep typeId="12" variable="$l_reco_action" >
<DIExpression isString="true" expr="($l_reco_action || 'Refer to failed metrics. ')" >
<CONCAT>
<VARIABLE_REFERENCE name="$l_reco_action" />
<CONSTANT value="Refer to failed metrics. " datatype="VARCHAR" size="25" />
</CONCAT>
</DIExpression>
</DIAssignmentStep>
</DIIf>
<DIElse>
<DIIfStep typeId="2" >
<DIExpression isString="true" expr="($l_am_warning_count &gt; 0)" >
<LOGICAL_OP op="GT">
<VARIABLE_REFERENCE name="$l_am_warning_count" />
<CONSTANT value="0" datatype="INT" />
</LOGICAL_OP>
</DIExpression>
<DIIf>
<DIAssignmentStep typeId="12" variable="$l_status" >
<DIExpression isString="true" expr="'WARNING'" >
<CONSTANT value="WARNING" datatype="VARCHAR" size="7" />
</DIExpression>
</DIAssignmentStep>
<DIAssignmentStep typeId="12" variable="$l_reco_action" >
<DIExpression isString="true" expr="($l_reco_action || 'Check WARNING metrics. ')" >
<CONCAT>
<VARIABLE_REFERENCE name="$l_reco_action" />
<CONSTANT value="Check WARNING metrics. " datatype="VARCHAR" size="23" />
</CONCAT>
</DIExpression>
</DIAssignmentStep>
</DIIf>
</DIIfStep>
</DIElse>
</DIIfStep>
</DIElse>
</DIIfStep>
<DIFunctionCallStep typeId="23" >
<DIExpression isString="true" expr="sql('DW_ABC_DS', 'update JOB_STREAM_STEP_RT&#xA;               set STATUS = {$l_status}, STATE = \'FINISHED\' , END_TIME = convert(varchar(25),convert(datetime,getdate(),111),127), STATUS_INFO = {$l_status_info}, RECO_ACTION = {$l_reco_action}&#xA;               where MD_PROCESS_ID = {$p_process_id}')" >
<FUNCTION_CALL name="sql"  type="DI" >
<CONSTANT value="DW_ABC_DS" datatype="VARCHAR" size="9" />
<CONSTANT value="update JOB_STREAM_STEP_RT&#xA;               set STATUS = {$l_status}, STATE = 'FINISHED' , END_TIME = convert(varchar(25),convert(datetime,getdate(),111),127), STATUS_INFO = {$l_status_info}, RECO_ACTION = {$l_reco_action}&#xA;               where MD_PROCESS_ID = {$p_process_id}" datatype="VARCHAR" size="272" />
</FUNCTION_CALL>
</DIExpression>
</DIFunctionCallStep>
<DIFunctionCallStep typeId="23" >
<DIExpression isString="true" expr="etl_print('**')" >
<FUNCTION_CALL name="etl_print"  type="DI" >
<CONSTANT value="**" datatype="VARCHAR" size="2" />
</FUNCTION_CALL>
</DIExpression>
</DIFunctionCallStep>
<DIFunctionCallStep typeId="23" >
<DIExpression isString="true" expr="etl_print('**')" >
<FUNCTION_CALL name="etl_print"  type="DI" >
<CONSTANT value="**" datatype="VARCHAR" size="2" />
</FUNCTION_CALL>
</DIExpression>
</DIFunctionCallStep>
<DIFunctionCallStep typeId="23" >
<DIExpression isString="true" expr="etl_print('** The Job {job_name()} is ending')" >
<FUNCTION_CALL name="etl_print"  type="DI" >
<CONSTANT value="** The Job {job_name()} is ending" datatype="VARCHAR" size="33" />
</FUNCTION_CALL>
</DIExpression>
</DIFunctionCallStep>
<DIFunctionCallStep typeId="23" >
<DIExpression isString="true" expr="etl_print('**   status: {$l_status}')" >
<FUNCTION_CALL name="etl_print"  type="DI" >
<CONSTANT value="**   status: {$l_status}" datatype="VARCHAR" size="24" />
</FUNCTION_CALL>
</DIExpression>
</DIFunctionCallStep>
<DIFunctionCallStep typeId="23" >
<DIExpression isString="true" expr="etl_print('**   explanation: {$l_status_info})')" >
<FUNCTION_CALL name="etl_print"  type="DI" >
<CONSTANT value="**   explanation: {$l_status_info})" datatype="VARCHAR" size="35" />
</FUNCTION_CALL>
</DIExpression>
</DIFunctionCallStep>
<DIFunctionCallStep typeId="23" >
<DIExpression isString="true" expr="etl_print('********************************')" >
<FUNCTION_CALL name="etl_print"  type="DI" >
<CONSTANT value="********************************" datatype="VARCHAR" size="32" />
</FUNCTION_CALL>
</DIExpression>
</DIFunctionCallStep>
<DIFunctionCallStep typeId="23" >
<DIExpression isString="true" expr="etl_print('********************************')" >
<FUNCTION_CALL name="etl_print"  type="DI" >
<CONSTANT value="********************************" datatype="VARCHAR" size="32" />
</FUNCTION_CALL>
</DIExpression>
</DIFunctionCallStep>
<DIReturnStep typeId="30" >
<DIExpression isString="true" expr=" NULL " >
<CONSTANT_NULL /></DIExpression>
</DIReturnStep>
</DISteps>
</DIScriptFunction>
<DIScriptFunction name="ABC_ENDWF_FN" typeId="11" >
<DIUIOptions>
<DIAttribute name="ui_script_text" value="&#xA;# LOOP THROUGH ALL VALUES IN INPUT PARAMETER TARGET_TABLE FIELD&#xA;# UPDATE EACH VALUE (IN DELIMITED STRING) AS SINGLE RECORD WITH ENDDATE&#xA;# CHECK THAT ABC_ENDWF_FN CANNOT BE CALLED BEFORE ABC_STARTWF_FN&#xA;&#xA;$l_previous_status = sql('DW_ABC_DS','select STATUS from JOB_STREAM_STEP_DETAIL_RT&#xA;                                      where MD_PROCESS_ID = {$p_process_id} AND DETAIL_NAME = {$p_detailname} ');&#xA;&#xA;if ($l_previous_status is null)&#xA;#  sql('DW_ABC_DS','insert into JOB_STREAM_STEP_DETAIL_RT &#xA;#                   (MD_PROCESS_ID, DETAIL_NAME, STATUS, END_TIME)  &#xA;#                   VALUES ({$p_process_id}, {$p_detailname}, \'ERROR\', {sysdate()})');&#x9;&#xD;&#xA;  sql('DW_ABC_DS','insert into JOB_STREAM_STEP_DETAIL_RT &#xA;                   (MD_PROCESS_ID, DETAIL_NAME, STATUS, END_TIME)  &#xA;                   VALUES ({$p_process_id}, {$p_detailname}, \'ERROR\', convert(datetime,{sysdate()},111))');&#x9;&#xA;else&#xA;  begin&#xA;    if ($l_previous_status = 'RUNNING')&#xA;      sql('DW_ABC_DS','update JOB_STREAM_STEP_DETAIL_RT&#xA;                       set STATUS = \'SUCCESS\', END_TIME = convert(varchar(25),convert(datetime,getdate(),111),127)&#xA;                       where MD_PROCESS_ID = {$p_process_id} AND DETAIL_NAME = {$p_detailname} ');&#xA;&#x9;else&#xA;      sql('DW_ABC_DS','update JOB_STREAM_STEP_DETAIL_RT&#xA;                       set STATUS = \'ERROR\', END_TIME = convert(varchar(25),convert(datetime,getdate(),111),127)&#xA;                       where MD_PROCESS_ID = {$p_process_id} AND DETAIL_NAME = {$p_detailname} ');&#xA;&#x9;&#xA;  end&#xA;&#xA;ETL_PRINT( '        ** The workflow: [workflow_name()] is ending' );&#xA;ETL_PRINT( '        **   user: ' || system_user_name() );&#xA;ETL_PRINT( '        **   detail name: ' || $p_detailname );&#xA;ETL_PRINT( '        ********************************' );&#xA;ETL_PRINT( '        ********************************' );&#xA;&#xA;return NULL;&#xA;&#xA;&#xA;&#xA;&#xA;  "/>
</DIUIOptions>
<DIProperties>
<DIAttribute name="Acta_user_func_category" value="User_Script_Function"/>
</DIProperties>
<DIParameters><DIElement paramType="IN" name="$p_detailname" datatype="VARCHAR" size="100" >
</DIElement>
<DIElement paramType="IN" name="$p_process_id" datatype="DECIMAL" precision="19" scale="0" >
</DIElement>
</DIParameters>
<DIVariables><DIElement paramType="LOCAL" name="$l_previous_status" datatype="VARCHAR" size="12" >
</DIElement>
</DIVariables>
<DIFunctionReturn datatype="INT" />
<DISteps>
<DIAssignmentStep typeId="12" variable="$l_previous_status" >
<DIExpression isString="true" expr="sql('DW_ABC_DS', 'select STATUS from JOB_STREAM_STEP_DETAIL_RT&#xA;                                      where MD_PROCESS_ID = {$p_process_id} AND DETAIL_NAME = {$p_detailname} ')" >
<FUNCTION_CALL name="sql"  type="DI" >
<CONSTANT value="DW_ABC_DS" datatype="VARCHAR" size="9" />
<CONSTANT value="select STATUS from JOB_STREAM_STEP_DETAIL_RT&#xA;                                      where MD_PROCESS_ID = {$p_process_id} AND DETAIL_NAME = {$p_detailname} " datatype="VARCHAR" size="155" />
</FUNCTION_CALL>
</DIExpression>
</DIAssignmentStep>
<DIIfStep typeId="2" >
<DIExpression isString="true" expr="($l_previous_status IS  NULL )" >
<LOGICAL_OP op="IS NULL">
<VARIABLE_REFERENCE name="$l_previous_status" />
</LOGICAL_OP>
</DIExpression>
<DIIf>
<DIFunctionCallStep typeId="23" >
<DIExpression isString="true" expr="sql('DW_ABC_DS', 'insert into JOB_STREAM_STEP_DETAIL_RT &#xA;                   (MD_PROCESS_ID, DETAIL_NAME, STATUS, END_TIME)  &#xA;                   VALUES ({$p_process_id}, {$p_detailname}, \'ERROR\', convert(datetime,{sysdate()},111))')" >
<FUNCTION_CALL name="sql"  type="DI" >
<CONSTANT value="DW_ABC_DS" datatype="VARCHAR" size="9" />
<CONSTANT value="insert into JOB_STREAM_STEP_DETAIL_RT &#xA;                   (MD_PROCESS_ID, DETAIL_NAME, STATUS, END_TIME)  &#xA;                   VALUES ({$p_process_id}, {$p_detailname}, 'ERROR', convert(datetime,{sysdate()},111))" datatype="VARCHAR" size="211" />
</FUNCTION_CALL>
</DIExpression>
</DIFunctionCallStep>
</DIIf>
<DIElse>
<DIIfStep typeId="2" >
<DIExpression isString="true" expr="($l_previous_status = 'RUNNING')" >
<LOGICAL_OP op="EQ">
<VARIABLE_REFERENCE name="$l_previous_status" />
<CONSTANT value="RUNNING" datatype="VARCHAR" size="7" />
</LOGICAL_OP>
</DIExpression>
<DIIf>
<DIFunctionCallStep typeId="23" >
<DIExpression isString="true" expr="sql('DW_ABC_DS', 'update JOB_STREAM_STEP_DETAIL_RT&#xA;                       set STATUS = \'SUCCESS\', END_TIME = convert(varchar(25),convert(datetime,getdate(),111),127)&#xA;                       where MD_PROCESS_ID = {$p_process_id} AND DETAIL_NAME = {$p_detailname} ')" >
<FUNCTION_CALL name="sql"  type="DI" >
<CONSTANT value="DW_ABC_DS" datatype="VARCHAR" size="9" />
<CONSTANT value="update JOB_STREAM_STEP_DETAIL_RT&#xA;                       set STATUS = 'SUCCESS', END_TIME = convert(varchar(25),convert(datetime,getdate(),111),127)&#xA;                       where MD_PROCESS_ID = {$p_process_id} AND DETAIL_NAME = {$p_detailname} " datatype="VARCHAR" size="243" />
</FUNCTION_CALL>
</DIExpression>
</DIFunctionCallStep>
</DIIf>
<DIElse>
<DIFunctionCallStep typeId="23" >
<DIExpression isString="true" expr="sql('DW_ABC_DS', 'update JOB_STREAM_STEP_DETAIL_RT&#xA;                       set STATUS = \'ERROR\', END_TIME = convert(varchar(25),convert(datetime,getdate(),111),127)&#xA;                       where MD_PROCESS_ID = {$p_process_id} AND DETAIL_NAME = {$p_detailname} ')" >
<FUNCTION_CALL name="sql"  type="DI" >
<CONSTANT value="DW_ABC_DS" datatype="VARCHAR" size="9" />
<CONSTANT value="update JOB_STREAM_STEP_DETAIL_RT&#xA;                       set STATUS = 'ERROR', END_TIME = convert(varchar(25),convert(datetime,getdate(),111),127)&#xA;                       where MD_PROCESS_ID = {$p_process_id} AND DETAIL_NAME = {$p_detailname} " datatype="VARCHAR" size="241" />
</FUNCTION_CALL>
</DIExpression>
</DIFunctionCallStep>
</DIElse>
</DIIfStep>
</DIElse>
</DIIfStep>
<DIFunctionCallStep typeId="23" >
<DIExpression isString="true" expr="etl_print('        ** The workflow: [workflow_name()] is ending')" >
<FUNCTION_CALL name="etl_print"  type="DI" >
<CONSTANT value="        ** The workflow: [workflow_name()] is ending" datatype="VARCHAR" size="52" />
</FUNCTION_CALL>
</DIExpression>
</DIFunctionCallStep>
<DIFunctionCallStep typeId="23" >
<DIExpression isString="true" expr="etl_print(('        **   user: ' || system_user_name()))" >
<FUNCTION_CALL name="etl_print"  type="DI" >
<CONCAT>
<CONSTANT value="        **   user: " datatype="VARCHAR" size="19" />
<FUNCTION_CALL name="system_user_name"  type="DI" />
</CONCAT>
</FUNCTION_CALL>
</DIExpression>
</DIFunctionCallStep>
<DIFunctionCallStep typeId="23" >
<DIExpression isString="true" expr="etl_print(('        **   detail name: ' || $p_detailname))" >
<FUNCTION_CALL name="etl_print"  type="DI" >
<CONCAT>
<CONSTANT value="        **   detail name: " datatype="VARCHAR" size="26" />
<VARIABLE_REFERENCE name="$p_detailname" />
</CONCAT>
</FUNCTION_CALL>
</DIExpression>
</DIFunctionCallStep>
<DIFunctionCallStep typeId="23" >
<DIExpression isString="true" expr="etl_print('        ********************************')" >
<FUNCTION_CALL name="etl_print"  type="DI" >
<CONSTANT value="        ********************************" datatype="VARCHAR" size="40" />
</FUNCTION_CALL>
</DIExpression>
</DIFunctionCallStep>
<DIFunctionCallStep typeId="23" >
<DIExpression isString="true" expr="etl_print('        ********************************')" >
<FUNCTION_CALL name="etl_print"  type="DI" >
<CONSTANT value="        ********************************" datatype="VARCHAR" size="40" />
</FUNCTION_CALL>
</DIExpression>
</DIFunctionCallStep>
<DIReturnStep typeId="30" >
<DIExpression isString="true" expr=" NULL " >
<CONSTANT_NULL /></DIExpression>
</DIReturnStep>
</DISteps>
</DIScriptFunction>
<DIScriptFunction name="ABC_FAILJB_FN" typeId="11" >
<DIUIOptions>
<DIAttribute name="ui_script_text" value="# IN EVENT THE JOB FAILED, UPDATE JOB RECORD WITH FAIL STATUS&#xA;&#xA;&#xA;if ($p_process_id is null)&#xA;  begin&#xA; &#x9; ETL_PRINT( 'ENTERED THE JOB CATCH BEFORE THE PROCESS_ID COULD BE SET (debug mode specific error)' );&#xA; &#x9; ETL_PRINT( 'AN ERROR RAISED BEFORE the execution of the job start script (this exception will not be recorded by ABC infrastructure)' );&#xA;  end&#xA;else&#xA;  begin&#xA;&#x9; $l_status_text = replace_substr( $p_status_info, '\'','\'\'');&#xA; &#x9; sql('DW_ABC_DS','update JOB_STREAM_STEP_RT&#xA;                 set STATE = \'FINISHED\', END_TIME = convert(varchar(25),convert(datetime,getdate(),111),127), STATUS = \'ERROR\', STATUS_INFO = {$l_status_text}&#xA;                 where  MD_PROCESS_ID = {$p_process_id} ');&#xA;&#xA;  end&#xA;&#xA;&#xA;ETL_PRINT( '        ** The Job : [job_name()] FAILED' );&#xA;ETL_PRINT( '        **   user: ' || system_user_name() );&#xA;ETL_PRINT( '        **   status info: ' || $p_status_info );&#xA;ETL_PRINT( '        ********************************' );&#xA;ETL_PRINT( '        ********************************' );&#xA;&#xA;return NULL;&#xA;"/>
</DIUIOptions>
<DIProperties>
<DIAttribute name="Acta_user_func_category" value="User_Script_Function"/>
<DIAttribute name="Parallelizable" value="no"/>
<DIAttribute name="isScriptValidationFunction" value="no"/>
</DIProperties>
<DIParameters><DIElement paramType="IN" name="$p_process_id" datatype="DECIMAL" precision="19" scale="0" >
</DIElement>
<DIElement paramType="IN" name="$p_status_info" datatype="VARCHAR" size="400" >
</DIElement>
</DIParameters>
<DIVariables><DIElement paramType="LOCAL" name="$l_status_text" datatype="VARCHAR" size="400" >
</DIElement>
</DIVariables>
<DIFunctionReturn datatype="INT" />
<DISteps>
<DIIfStep typeId="2" >
<DIExpression isString="true" expr="($p_process_id IS  NULL )" >
<LOGICAL_OP op="IS NULL">
<VARIABLE_REFERENCE name="$p_process_id" />
</LOGICAL_OP>
</DIExpression>
<DIIf>
<DIFunctionCallStep typeId="23" >
<DIExpression isString="true" expr="etl_print('ENTERED THE JOB CATCH BEFORE THE PROCESS_ID COULD BE SET (debug mode specific error)')" >
<FUNCTION_CALL name="etl_print"  type="DI" >
<CONSTANT value="ENTERED THE JOB CATCH BEFORE THE PROCESS_ID COULD BE SET (debug mode specific error)" datatype="VARCHAR" size="84" />
</FUNCTION_CALL>
</DIExpression>
</DIFunctionCallStep>
<DIFunctionCallStep typeId="23" >
<DIExpression isString="true" expr="etl_print('AN ERROR RAISED BEFORE the execution of the job start script (this exception will not be recorded by ABC infrastructure)')" >
<FUNCTION_CALL name="etl_print"  type="DI" >
<CONSTANT value="AN ERROR RAISED BEFORE the execution of the job start script (this exception will not be recorded by ABC infrastructure)" datatype="VARCHAR" size="120" />
</FUNCTION_CALL>
</DIExpression>
</DIFunctionCallStep>
</DIIf>
<DIElse>
<DIAssignmentStep typeId="12" variable="$l_status_text" >
<DIExpression isString="true" expr="replace_substr($p_status_info, '\'', '\'\'')" >
<FUNCTION_CALL name="replace_substr"  type="DI" >
<VARIABLE_REFERENCE name="$p_status_info" />
<CONSTANT value="'" datatype="VARCHAR" size="1" />
<CONSTANT value="''" datatype="VARCHAR" size="2" />
</FUNCTION_CALL>
</DIExpression>
</DIAssignmentStep>
<DIFunctionCallStep typeId="23" >
<DIExpression isString="true" expr="sql('DW_ABC_DS', 'update JOB_STREAM_STEP_RT&#xA;                 set STATE = \'FINISHED\', END_TIME = convert(varchar(25),convert(datetime,getdate(),111),127), STATUS = \'ERROR\', STATUS_INFO = {$l_status_text}&#xA;                 where  MD_PROCESS_ID = {$p_process_id} ')" >
<FUNCTION_CALL name="sql"  type="DI" >
<CONSTANT value="DW_ABC_DS" datatype="VARCHAR" size="9" />
<CONSTANT value="update JOB_STREAM_STEP_RT&#xA;                 set STATE = 'FINISHED', END_TIME = convert(varchar(25),convert(datetime,getdate(),111),127), STATUS = 'ERROR', STATUS_INFO = {$l_status_text}&#xA;                 where  MD_PROCESS_ID = {$p_process_id} " datatype="VARCHAR" size="241" />
</FUNCTION_CALL>
</DIExpression>
</DIFunctionCallStep>
</DIElse>
</DIIfStep>
<DIFunctionCallStep typeId="23" >
<DIExpression isString="true" expr="etl_print('        ** The Job : [job_name()] FAILED')" >
<FUNCTION_CALL name="etl_print"  type="DI" >
<CONSTANT value="        ** The Job : [job_name()] FAILED" datatype="VARCHAR" size="40" />
</FUNCTION_CALL>
</DIExpression>
</DIFunctionCallStep>
<DIFunctionCallStep typeId="23" >
<DIExpression isString="true" expr="etl_print(('        **   user: ' || system_user_name()))" >
<FUNCTION_CALL name="etl_print"  type="DI" >
<CONCAT>
<CONSTANT value="        **   user: " datatype="VARCHAR" size="19" />
<FUNCTION_CALL name="system_user_name"  type="DI" />
</CONCAT>
</FUNCTION_CALL>
</DIExpression>
</DIFunctionCallStep>
<DIFunctionCallStep typeId="23" >
<DIExpression isString="true" expr="etl_print(('        **   status info: ' || $p_status_info))" >
<FUNCTION_CALL name="etl_print"  type="DI" >
<CONCAT>
<CONSTANT value="        **   status info: " datatype="VARCHAR" size="26" />
<VARIABLE_REFERENCE name="$p_status_info" />
</CONCAT>
</FUNCTION_CALL>
</DIExpression>
</DIFunctionCallStep>
<DIFunctionCallStep typeId="23" >
<DIExpression isString="true" expr="etl_print('        ********************************')" >
<FUNCTION_CALL name="etl_print"  type="DI" >
<CONSTANT value="        ********************************" datatype="VARCHAR" size="40" />
</FUNCTION_CALL>
</DIExpression>
</DIFunctionCallStep>
<DIFunctionCallStep typeId="23" >
<DIExpression isString="true" expr="etl_print('        ********************************')" >
<FUNCTION_CALL name="etl_print"  type="DI" >
<CONSTANT value="        ********************************" datatype="VARCHAR" size="40" />
</FUNCTION_CALL>
</DIExpression>
</DIFunctionCallStep>
<DIReturnStep typeId="30" >
<DIExpression isString="true" expr=" NULL " >
<CONSTANT_NULL /></DIExpression>
</DIReturnStep>
</DISteps>
</DIScriptFunction>
<DIScriptFunction name="ABC_FAILWF_FN" typeId="11" >
<DIUIOptions>
<DIAttribute name="ui_script_text" value="# IN EVENT THE WORKFLOW FAILED, UPDATE WORKFLOW RECORD WITH FAIL STATUS&#xA;&#xA;$l_status_text = replace_substr( $p_status_info, '\'','\'\'');&#xA;&#xA;sql('DW_ABC_DS','update JOB_STREAM_STEP_DETAIL_RT&#xA;                 set STATUS = \'ERROR\', STATUS_INFO = {$l_status_text}, END_TIME = convert(varchar(25),convert(datetime,getdate(),111),127)&#xA;                 where  MD_PROCESS_ID = {$p_process_id} AND DETAIL_NAME = {$p_detailname} ');&#xA;&#xA;ETL_PRINT( '        ** The workflow: [workflow_name()] FAILED' );&#xA;ETL_PRINT( '        **   user: ' || system_user_name() );&#xA;ETL_PRINT( '        **   status info: ' || $p_status_info );&#xA;ETL_PRINT( '        **   detail name: ' || $p_detailname );&#xA;ETL_PRINT( '        ********************************' );&#xA;ETL_PRINT( '        ********************************' );&#xA;&#xA;return NULL;&#xA;"/>
</DIUIOptions>
<DIProperties>
<DIAttribute name="Acta_user_func_category" value="User_Script_Function"/>
</DIProperties>
<DIParameters><DIElement paramType="IN" name="$p_detailname" datatype="VARCHAR" size="100" >
</DIElement>
<DIElement paramType="IN" name="$p_process_id" datatype="DECIMAL" precision="19" scale="0" >
</DIElement>
<DIElement paramType="IN" name="$p_status_info" datatype="VARCHAR" size="400" >
</DIElement>
</DIParameters>
<DIVariables><DIElement paramType="LOCAL" name="$l_status_text" datatype="VARCHAR" size="400" >
</DIElement>
</DIVariables>
<DIFunctionReturn datatype="INT" />
<DISteps>
<DIAssignmentStep typeId="12" variable="$l_status_text" >
<DIExpression isString="true" expr="replace_substr($p_status_info, '\'', '\'\'')" >
<FUNCTION_CALL name="replace_substr"  type="DI" >
<VARIABLE_REFERENCE name="$p_status_info" />
<CONSTANT value="'" datatype="VARCHAR" size="1" />
<CONSTANT value="''" datatype="VARCHAR" size="2" />
</FUNCTION_CALL>
</DIExpression>
</DIAssignmentStep>
<DIFunctionCallStep typeId="23" >
<DIExpression isString="true" expr="sql('DW_ABC_DS', 'update JOB_STREAM_STEP_DETAIL_RT&#xA;                 set STATUS = \'ERROR\', STATUS_INFO = {$l_status_text}, END_TIME = convert(varchar(25),convert(datetime,getdate(),111),127)&#xA;                 where  MD_PROCESS_ID = {$p_process_id} AND DETAIL_NAME = {$p_detailname} ')" >
<FUNCTION_CALL name="sql"  type="DI" >
<CONSTANT value="DW_ABC_DS" datatype="VARCHAR" size="9" />
<CONSTANT value="update JOB_STREAM_STEP_DETAIL_RT&#xA;                 set STATUS = 'ERROR', STATUS_INFO = {$l_status_text}, END_TIME = convert(varchar(25),convert(datetime,getdate(),111),127)&#xA;                 where  MD_PROCESS_ID = {$p_process_id} AND DETAIL_NAME = {$p_detailname} " datatype="VARCHAR" size="262" />
</FUNCTION_CALL>
</DIExpression>
</DIFunctionCallStep>
<DIFunctionCallStep typeId="23" >
<DIExpression isString="true" expr="etl_print('        ** The workflow: [workflow_name()] FAILED')" >
<FUNCTION_CALL name="etl_print"  type="DI" >
<CONSTANT value="        ** The workflow: [workflow_name()] FAILED" datatype="VARCHAR" size="49" />
</FUNCTION_CALL>
</DIExpression>
</DIFunctionCallStep>
<DIFunctionCallStep typeId="23" >
<DIExpression isString="true" expr="etl_print(('        **   user: ' || system_user_name()))" >
<FUNCTION_CALL name="etl_print"  type="DI" >
<CONCAT>
<CONSTANT value="        **   user: " datatype="VARCHAR" size="19" />
<FUNCTION_CALL name="system_user_name"  type="DI" />
</CONCAT>
</FUNCTION_CALL>
</DIExpression>
</DIFunctionCallStep>
<DIFunctionCallStep typeId="23" >
<DIExpression isString="true" expr="etl_print(('        **   status info: ' || $p_status_info))" >
<FUNCTION_CALL name="etl_print"  type="DI" >
<CONCAT>
<CONSTANT value="        **   status info: " datatype="VARCHAR" size="26" />
<VARIABLE_REFERENCE name="$p_status_info" />
</CONCAT>
</FUNCTION_CALL>
</DIExpression>
</DIFunctionCallStep>
<DIFunctionCallStep typeId="23" >
<DIExpression isString="true" expr="etl_print(('        **   detail name: ' || $p_detailname))" >
<FUNCTION_CALL name="etl_print"  type="DI" >
<CONCAT>
<CONSTANT value="        **   detail name: " datatype="VARCHAR" size="26" />
<VARIABLE_REFERENCE name="$p_detailname" />
</CONCAT>
</FUNCTION_CALL>
</DIExpression>
</DIFunctionCallStep>
<DIFunctionCallStep typeId="23" >
<DIExpression isString="true" expr="etl_print('        ********************************')" >
<FUNCTION_CALL name="etl_print"  type="DI" >
<CONSTANT value="        ********************************" datatype="VARCHAR" size="40" />
</FUNCTION_CALL>
</DIExpression>
</DIFunctionCallStep>
<DIFunctionCallStep typeId="23" >
<DIExpression isString="true" expr="etl_print('        ********************************')" >
<FUNCTION_CALL name="etl_print"  type="DI" >
<CONSTANT value="        ********************************" datatype="VARCHAR" size="40" />
</FUNCTION_CALL>
</DIExpression>
</DIFunctionCallStep>
<DIReturnStep typeId="30" >
<DIExpression isString="true" expr=" NULL " >
<CONSTANT_NULL /></DIExpression>
</DIReturnStep>
</DISteps>
</DIScriptFunction>
<DIScriptFunction name="ABC_STARTJB_FN" typeId="11" >
<DIUIOptions>
<DIAttribute name="ui_script_text" value="#$l_job_start_date = sysdate( );&#xD;&#xA;$l_job_start_date = sql('DW_ABC_DS','select getdate()');&#xD;&#xA;$l_job_start_date_vchar = sql('DW_ABC_DS','select convert(varchar(25),convert(datetime,{$l_job_start_date},111),127)');&#xD;&#xA;ETL_PRINT('l_job_start_date_vchar = '|| $l_job_start_date_vchar);&#xD;&#xA;#sql('DW_ABC_DS','select convert(datetime,GETDATE()-5,111)');&#xD;&#xA;#;&#xA;# the job may have been called from the DW scheduler as part of a job stream&#xA;# or it may be launched manually &#xA;# if the job is called as part of a job stream&#xA;#   then its row in DW_ABC_DS.STEP_RUNTIME identified by $G_STEP_RT_ID  has already &#xA;#   been created with a WAITING status&#xA;# else&#xA;#   the job has been launched out of a stream context, it will create its own entry &#xA;#   flagged as MANUAL in DW_ABC_DS.STEP_RUNTIME&#xA;       &#xA;if ($p_debug_mode is null or not $p_debug_mode = 1)&#xA;  begin&#xA;    if ($p_process_id is null)&#xA;      begin&#xA;&#x9;    ETL_PRINT( 'ERROR: $G_PROCESS_ID is not set. If you want to run manually the job, you must set $G_DEBUG_MODE=1' );&#xA;        raise_exception('$G_PROCESS_ID is not set. If you want to run manually the job, you must set $G_DEBUG_MODE=1');&#xA;      end&#xA;    # retrieve the batch id from the STEP_RUNTIME table&#xA;    $p_batch_id = sql('DW_ABC_DS',&#xA;      'SELECT MD_BATCH_ID FROM JOB_STREAM_STEP_RT where MD_PROCESS_ID = {$p_process_id}');&#xA;    if ($p_batch_id is null)&#xA;      begin&#xA;&#x9;    ETL_PRINT( 'ERROR: Process ' || $p_process_id || ' not found in STEP_RUNTIME table.' );&#xA;        raise_exception('process '||$p_process_id||' is not found in STEP_RUNTIME table.');&#xA;      end&#xA;  end&#xA;else&#xA;  begin&#xA;    if ($p_process_id is not null)&#xA;      begin&#xA;&#x9;    ETL_PRINT( 'ERROR: abC usage error detected : $G_DEBUG_MODE is set to ' || $p_debug_mode || ' but $G_PROCESS_ID is not null (set to '||$p_process_id||'). In debug mode Process ID will be allocated by the job and cannot be specified');&#xA;        raise_exception('ERROR: abC usage error detected : $G_DEBUG_MODE is set to ' || $p_debug_mode || ' but $G_PROCESS_ID is not null (set to '||$p_process_id||'). in debug mode Process ID will be allocated by the system and cannot be specified');&#xA;      end&#xA;    # create the job level row in DW_ABC_DS.STEP_RUNTIME note that only a basic row without start dates is created &#xA;  &#x9;# this will be done in code shared for scheduled and manual rows&#xA;&#xD;&#xA;#    sql('DW_ABC_DS','insert into JOB_STREAM_STEP_RT (JOB_NAME, START_TIME, STEP_OWNER, STATE) &#xA;#                     VALUES ({job_name()},{$l_job_start_date}, \'MANUAL\', \'STARTING\')');&#xA;&#xD;&#xA;    sql('DW_ABC_DS','insert into JOB_STREAM_STEP_RT (JOB_NAME, START_TIME, STEP_OWNER, STATE) &#xA;                     VALUES ({job_name()},{$l_job_start_date_vchar}, \'MANUAL\', \'STARTING\')');&#xA;  &#x9;# retrieve the row ID affected by the DB, this ID will be used for any future reference to the STEP_RUNTIME table&#xA;# &#x9;$p_process_id = sql('DW_ABC_DS','SELECT MD_PROCESS_ID from JOB_STREAM_STEP_RT where JOB_NAME = {job_name()} AND START_TIME = {$l_job_start_date} AND STEP_OWNER = \'MANUAL\' AND STATE =  \'STARTING\' ');&#xA;#&#x9;ETL_PRINT( 'After manual launch, the assigned Process ID is: ' || $p_process_id );&#xA;&#xD;&#xA; &#x9;$p_process_id = sql('DW_ABC_DS','SELECT MD_PROCESS_ID from JOB_STREAM_STEP_RT where JOB_NAME = {job_name()} AND START_TIME = {$l_job_start_date_vchar} AND STEP_OWNER = \'MANUAL\' AND STATE =  \'STARTING\' ');&#xA;&#x9;ETL_PRINT( 'After manual launch, the assigned Process ID is: ' || $p_process_id );&#xA;&#x9;# No new batch is created in debug mode, but set 0 to batch-id variable to have a not null value&#xA;&#x9;$p_batch_id = 0;&#xA;  end&#xA;&#xA;&#xA;ETL_PRINT ( 'Process ' || $p_process_id || ' retrieved $p_batch_id = {$p_batch_id}' );&#xA;$l_state = sql('DW_ABC_DS',&#xA;      'SELECT STATE FROM JOB_STREAM_STEP_RT where MD_PROCESS_ID = {$p_process_id}');&#xA;$l_job_name = sql('DW_ABC_DS',&#xA;      'SELECT JOB_NAME FROM JOB_STREAM_STEP_RT where MD_PROCESS_ID = {$p_process_id}');&#xA;&#xA;if ($l_state != 'STARTING' )&#xA;begin&#xA;    sql('DW_ABC_DS','update JOB_STREAM_STEP_RT set STATUS_INFO = \'Tried to run job, but it is not in a runnable state.\' &#xA;         where MD_PROCESS_ID = {$p_process_id}');&#xA;    raise_exception('ERROR: This job is not in a runnable state. This may come from Web Service timeout, the job will not execute and a new one will be trigered by ABC (if not already done)');&#xA;end&#xA;&#xA;if ($l_job_name != job_name() )&#xA;begin&#xA;   # sql('DW_ABC_DS','update JOB_STREAM_STEP_RT set STATUS_INFO = \'This job, {job_name()}, does not match the JOB_NAME of the step you are trying to run ($l_job_name).\' &#xA;   #      where MD_PROCESS_ID = {$p_process_id}');&#xA;    raise_exception('ERROR: This job, {job_name()}, does not match the JOB_NAME of the step you are trying to run (' || $l_job_name || ').');&#xA;end&#xA;&#xA;# now flag the job as running&#xD;&#xA;#sql('DW_ABC_DS','update JOB_STREAM_STEP_RT set STATE = \'RUNNING\',&#xA;#JOB_NAME = {job_name()}, START_TIME = convert(datetime,{$l_job_start_date},111)&#xA;#where MD_PROCESS_ID = {$p_process_id}');&#xA;sql('DW_ABC_DS','update JOB_STREAM_STEP_RT set STATE = \'RUNNING\',&#xA;JOB_NAME = {job_name()}, START_TIME = {$l_job_start_date_vchar}&#xA;where MD_PROCESS_ID = {$p_process_id}');&#xA;&#xA;set_env( 'ETL_DEBUG_MODE', $p_debug_mode );&#xA;set_env( 'ETL_BATCH_ID', $p_batch_id);&#xA;set_env( 'ETL_PROCESS_ID', $p_process_id );&#xA;if ( is_set_env( 'ETL_TRACE_LEVEL' ) != 1 )&#xA;begin&#xA;&#x9;set_env( 'ETL_TRACE_LEVEL', 'ALL' );&#xA;end&#xA;&#xA;ETL_PRINT( '********************************' );&#xA;ETL_PRINT( '********************************' );&#xA;ETL_PRINT( '** The Job {job_name()} is starting' || ifthenelse((get_env('ETL_DEBUG_MODE') = '1'), ' in Debug mode', '') || '.');&#xA;ETL_PRINT( '**' );&#xA;ETL_PRINT( '**' );&#xA;&#xA;return (5);&#xA;"/>
</DIUIOptions>
<DIProperties>
<DIAttribute name="Acta_user_func_category" value="User_Script_Function"/>
</DIProperties>
<DIParameters><DIElement paramType="IN_OUT" name="$p_process_id" datatype="DECIMAL" precision="19" scale="0" >
</DIElement>
<DIElement paramType="IN" name="$p_debug_mode" datatype="INT" >
</DIElement>
<DIElement paramType="OUT" name="$p_batch_id" datatype="DECIMAL" precision="19" scale="0" >
</DIElement>
</DIParameters>
<DIVariables><DIElement paramType="LOCAL" name="$l_previous_process_id" datatype="DECIMAL" precision="19" scale="0" >
</DIElement>
<DIElement paramType="LOCAL" name="$l_sqltext" datatype="VARCHAR" size="80" >
</DIElement>
<DIElement paramType="LOCAL" name="$l_job_start_date" datatype="DATETIME" >
</DIElement>
<DIElement paramType="LOCAL" name="$l_state" datatype="VARCHAR" size="30" >
</DIElement>
<DIElement paramType="LOCAL" name="$l_job_name" datatype="VARCHAR" size="60" >
</DIElement>
<DIElement paramType="LOCAL" name="$l_job_start_date_vchar" datatype="VARCHAR" size="25" >
</DIElement>
</DIVariables>
<DIFunctionReturn datatype="DATETIME" />
<DISteps>
<DIAssignmentStep typeId="12" variable="$l_job_start_date" >
<DIExpression isString="true" expr="sql('DW_ABC_DS', 'select getdate()')" >
<FUNCTION_CALL name="sql"  type="DI" >
<CONSTANT value="DW_ABC_DS" datatype="VARCHAR" size="9" />
<CONSTANT value="select getdate()" datatype="VARCHAR" size="16" />
</FUNCTION_CALL>
</DIExpression>
</DIAssignmentStep>
<DIAssignmentStep typeId="12" variable="$l_job_start_date_vchar" >
<DIExpression isString="true" expr="sql('DW_ABC_DS', 'select convert(varchar(25),convert(datetime,{$l_job_start_date},111),127)')" >
<FUNCTION_CALL name="sql"  type="DI" >
<CONSTANT value="DW_ABC_DS" datatype="VARCHAR" size="9" />
<CONSTANT value="select convert(varchar(25),convert(datetime,{$l_job_start_date},111),127)" datatype="VARCHAR" size="73" />
</FUNCTION_CALL>
</DIExpression>
</DIAssignmentStep>
<DIFunctionCallStep typeId="23" >
<DIExpression isString="true" expr="etl_print(('l_job_start_date_vchar = ' || $l_job_start_date_vchar))" >
<FUNCTION_CALL name="etl_print"  type="DI" >
<CONCAT>
<CONSTANT value="l_job_start_date_vchar = " datatype="VARCHAR" size="25" />
<VARIABLE_REFERENCE name="$l_job_start_date_vchar" />
</CONCAT>
</FUNCTION_CALL>
</DIExpression>
</DIFunctionCallStep>
<DIIfStep typeId="2" >
<DIExpression isString="true" expr="(($p_debug_mode IS  NULL ) OR&#xA;   ( not ($p_debug_mode = 1)))" >
<LOGICAL_OP op="OR">
<LOGICAL_OP op="IS NULL">
<VARIABLE_REFERENCE name="$p_debug_mode" />
</LOGICAL_OP>
<LOGICAL_OP op="NOT">
<LOGICAL_OP op="EQ">
<VARIABLE_REFERENCE name="$p_debug_mode" />
<CONSTANT value="1" datatype="INT" />
</LOGICAL_OP>
</LOGICAL_OP>
</LOGICAL_OP>
</DIExpression>
<DIIf>
<DIIfStep typeId="2" >
<DIExpression isString="true" expr="($p_process_id IS  NULL )" >
<LOGICAL_OP op="IS NULL">
<VARIABLE_REFERENCE name="$p_process_id" />
</LOGICAL_OP>
</DIExpression>
<DIIf>
<DIFunctionCallStep typeId="23" >
<DIExpression isString="true" expr="etl_print('ERROR: $G_PROCESS_ID is not set. If you want to run manually the job, you must set $G_DEBUG_MODE=1')" >
<FUNCTION_CALL name="etl_print"  type="DI" >
<CONSTANT value="ERROR: $G_PROCESS_ID is not set. If you want to run manually the job, you must set $G_DEBUG_MODE=1" datatype="VARCHAR" size="98" />
</FUNCTION_CALL>
</DIExpression>
</DIFunctionCallStep>
<DIFunctionCallStep typeId="23" >
<DIExpression isString="true" expr="raise_exception('$G_PROCESS_ID is not set. If you want to run manually the job, you must set $G_DEBUG_MODE=1')" >
<FUNCTION_CALL name="raise_exception"  type="DI" >
<CONSTANT value="$G_PROCESS_ID is not set. If you want to run manually the job, you must set $G_DEBUG_MODE=1" datatype="VARCHAR" size="91" />
</FUNCTION_CALL>
</DIExpression>
</DIFunctionCallStep>
</DIIf>
</DIIfStep>
<DIAssignmentStep typeId="12" variable="$p_batch_id" >
<DIExpression isString="true" expr="sql('DW_ABC_DS', 'SELECT MD_BATCH_ID FROM JOB_STREAM_STEP_RT where MD_PROCESS_ID = {$p_process_id}')" >
<FUNCTION_CALL name="sql"  type="DI" >
<CONSTANT value="DW_ABC_DS" datatype="VARCHAR" size="9" />
<CONSTANT value="SELECT MD_BATCH_ID FROM JOB_STREAM_STEP_RT where MD_PROCESS_ID = {$p_process_id}" datatype="VARCHAR" size="80" />
</FUNCTION_CALL>
</DIExpression>
</DIAssignmentStep>
<DIIfStep typeId="2" >
<DIExpression isString="true" expr="($p_batch_id IS  NULL )" >
<LOGICAL_OP op="IS NULL">
<VARIABLE_REFERENCE name="$p_batch_id" />
</LOGICAL_OP>
</DIExpression>
<DIIf>
<DIFunctionCallStep typeId="23" >
<DIExpression isString="true" expr="etl_print((('ERROR: Process ' || $p_process_id) || ' not found in STEP_RUNTIME table.'))" >
<FUNCTION_CALL name="etl_print"  type="DI" >
<CONCAT>
<CONCAT>
<CONSTANT value="ERROR: Process " datatype="VARCHAR" size="15" />
<VARIABLE_REFERENCE name="$p_process_id" />
</CONCAT>
<CONSTANT value=" not found in STEP_RUNTIME table." datatype="VARCHAR" size="33" />
</CONCAT>
</FUNCTION_CALL>
</DIExpression>
</DIFunctionCallStep>
<DIFunctionCallStep typeId="23" >
<DIExpression isString="true" expr="raise_exception((('process ' || $p_process_id) || ' is not found in STEP_RUNTIME table.'))" >
<FUNCTION_CALL name="raise_exception"  type="DI" >
<CONCAT>
<CONCAT>
<CONSTANT value="process " datatype="VARCHAR" size="8" />
<VARIABLE_REFERENCE name="$p_process_id" />
</CONCAT>
<CONSTANT value=" is not found in STEP_RUNTIME table." datatype="VARCHAR" size="36" />
</CONCAT>
</FUNCTION_CALL>
</DIExpression>
</DIFunctionCallStep>
</DIIf>
</DIIfStep>
</DIIf>
<DIElse>
<DIIfStep typeId="2" >
<DIExpression isString="true" expr="($p_process_id IS NOT  NULL )" >
<LOGICAL_OP op="IS NOT NULL">
<VARIABLE_REFERENCE name="$p_process_id" />
</LOGICAL_OP>
</DIExpression>
<DIIf>
<DIFunctionCallStep typeId="23" >
<DIExpression isString="true" expr="etl_print((((('ERROR: abC usage error detected : $G_DEBUG_MODE is set to ' || $p_debug_mode) || ' but $G_PROCESS_ID is not null (set to ') || $p_process_id) || '). In debug mode Process ID will be allocated by the job and cannot be specified'))" >
<FUNCTION_CALL name="etl_print"  type="DI" >
<CONCAT>
<CONCAT>
<CONCAT>
<CONCAT>
<CONSTANT value="ERROR: abC usage error detected : $G_DEBUG_MODE is set to " datatype="VARCHAR" size="58" />
<VARIABLE_REFERENCE name="$p_debug_mode" />
</CONCAT>
<CONSTANT value=" but $G_PROCESS_ID is not null (set to " datatype="VARCHAR" size="39" />
</CONCAT>
<VARIABLE_REFERENCE name="$p_process_id" />
</CONCAT>
<CONSTANT value="). In debug mode Process ID will be allocated by the job and cannot be specified" datatype="VARCHAR" size="80" />
</CONCAT>
</FUNCTION_CALL>
</DIExpression>
</DIFunctionCallStep>
<DIFunctionCallStep typeId="23" >
<DIExpression isString="true" expr="raise_exception((((('ERROR: abC usage error detected : $G_DEBUG_MODE is set to ' || $p_debug_mode) || ' but $G_PROCESS_ID is not null (set to ') || $p_process_id) || '). in debug mode Process ID will be allocated by the system and cannot be specified'))" >
<FUNCTION_CALL name="raise_exception"  type="DI" >
<CONCAT>
<CONCAT>
<CONCAT>
<CONCAT>
<CONSTANT value="ERROR: abC usage error detected : $G_DEBUG_MODE is set to " datatype="VARCHAR" size="58" />
<VARIABLE_REFERENCE name="$p_debug_mode" />
</CONCAT>
<CONSTANT value=" but $G_PROCESS_ID is not null (set to " datatype="VARCHAR" size="39" />
</CONCAT>
<VARIABLE_REFERENCE name="$p_process_id" />
</CONCAT>
<CONSTANT value="). in debug mode Process ID will be allocated by the system and cannot be specified" datatype="VARCHAR" size="83" />
</CONCAT>
</FUNCTION_CALL>
</DIExpression>
</DIFunctionCallStep>
</DIIf>
</DIIfStep>
<DIFunctionCallStep typeId="23" >
<DIExpression isString="true" expr="sql('DW_ABC_DS', 'insert into JOB_STREAM_STEP_RT (JOB_NAME, START_TIME, STEP_OWNER, STATE) &#xA;                     VALUES ({job_name()},{$l_job_start_date_vchar}, \'MANUAL\', \'STARTING\')')" >
<FUNCTION_CALL name="sql"  type="DI" >
<CONSTANT value="DW_ABC_DS" datatype="VARCHAR" size="9" />
<CONSTANT value="insert into JOB_STREAM_STEP_RT (JOB_NAME, START_TIME, STEP_OWNER, STATE) &#xA;                     VALUES ({job_name()},{$l_job_start_date_vchar}, 'MANUAL', 'STARTING')" datatype="VARCHAR" size="164" />
</FUNCTION_CALL>
</DIExpression>
</DIFunctionCallStep>
<DIAssignmentStep typeId="12" variable="$p_process_id" >
<DIExpression isString="true" expr="sql('DW_ABC_DS', 'SELECT MD_PROCESS_ID from JOB_STREAM_STEP_RT where JOB_NAME = {job_name()} AND START_TIME = {$l_job_start_date_vchar} AND STEP_OWNER = \'MANUAL\' AND STATE =  \'STARTING\' ')" >
<FUNCTION_CALL name="sql"  type="DI" >
<CONSTANT value="DW_ABC_DS" datatype="VARCHAR" size="9" />
<CONSTANT value="SELECT MD_PROCESS_ID from JOB_STREAM_STEP_RT where JOB_NAME = {job_name()} AND START_TIME = {$l_job_start_date_vchar} AND STEP_OWNER = 'MANUAL' AND STATE =  'STARTING' " datatype="VARCHAR" size="168" />
</FUNCTION_CALL>
</DIExpression>
</DIAssignmentStep>
<DIFunctionCallStep typeId="23" >
<DIExpression isString="true" expr="etl_print(('After manual launch, the assigned Process ID is: ' || $p_process_id))" >
<FUNCTION_CALL name="etl_print"  type="DI" >
<CONCAT>
<CONSTANT value="After manual launch, the assigned Process ID is: " datatype="VARCHAR" size="49" />
<VARIABLE_REFERENCE name="$p_process_id" />
</CONCAT>
</FUNCTION_CALL>
</DIExpression>
</DIFunctionCallStep>
<DIAssignmentStep typeId="12" variable="$p_batch_id" >
<DIExpression isString="true" expr="0" >
<CONSTANT value="0" datatype="INT" />
</DIExpression>
</DIAssignmentStep>
</DIElse>
</DIIfStep>
<DIFunctionCallStep typeId="23" >
<DIExpression isString="true" expr="etl_print((('Process ' || $p_process_id) || ' retrieved $p_batch_id = {$p_batch_id}'))" >
<FUNCTION_CALL name="etl_print"  type="DI" >
<CONCAT>
<CONCAT>
<CONSTANT value="Process " datatype="VARCHAR" size="8" />
<VARIABLE_REFERENCE name="$p_process_id" />
</CONCAT>
<CONSTANT value=" retrieved $p_batch_id = {$p_batch_id}" datatype="VARCHAR" size="38" />
</CONCAT>
</FUNCTION_CALL>
</DIExpression>
</DIFunctionCallStep>
<DIAssignmentStep typeId="12" variable="$l_state" >
<DIExpression isString="true" expr="sql('DW_ABC_DS', 'SELECT STATE FROM JOB_STREAM_STEP_RT where MD_PROCESS_ID = {$p_process_id}')" >
<FUNCTION_CALL name="sql"  type="DI" >
<CONSTANT value="DW_ABC_DS" datatype="VARCHAR" size="9" />
<CONSTANT value="SELECT STATE FROM JOB_STREAM_STEP_RT where MD_PROCESS_ID = {$p_process_id}" datatype="VARCHAR" size="74" />
</FUNCTION_CALL>
</DIExpression>
</DIAssignmentStep>
<DIAssignmentStep typeId="12" variable="$l_job_name" >
<DIExpression isString="true" expr="sql('DW_ABC_DS', 'SELECT JOB_NAME FROM JOB_STREAM_STEP_RT where MD_PROCESS_ID = {$p_process_id}')" >
<FUNCTION_CALL name="sql"  type="DI" >
<CONSTANT value="DW_ABC_DS" datatype="VARCHAR" size="9" />
<CONSTANT value="SELECT JOB_NAME FROM JOB_STREAM_STEP_RT where MD_PROCESS_ID = {$p_process_id}" datatype="VARCHAR" size="77" />
</FUNCTION_CALL>
</DIExpression>
</DIAssignmentStep>
<DIIfStep typeId="2" >
<DIExpression isString="true" expr="($l_state != 'STARTING')" >
<LOGICAL_OP op="NE">
<VARIABLE_REFERENCE name="$l_state" />
<CONSTANT value="STARTING" datatype="VARCHAR" size="8" />
</LOGICAL_OP>
</DIExpression>
<DIIf>
<DIFunctionCallStep typeId="23" >
<DIExpression isString="true" expr="sql('DW_ABC_DS', 'update JOB_STREAM_STEP_RT set STATUS_INFO = \'Tried to run job, but it is not in a runnable state.\' &#xA;         where MD_PROCESS_ID = {$p_process_id}')" >
<FUNCTION_CALL name="sql"  type="DI" >
<CONSTANT value="DW_ABC_DS" datatype="VARCHAR" size="9" />
<CONSTANT value="update JOB_STREAM_STEP_RT set STATUS_INFO = 'Tried to run job, but it is not in a runnable state.' &#xA;         where MD_PROCESS_ID = {$p_process_id}" datatype="VARCHAR" size="146" />
</FUNCTION_CALL>
</DIExpression>
</DIFunctionCallStep>
<DIFunctionCallStep typeId="23" >
<DIExpression isString="true" expr="raise_exception('ERROR: This job is not in a runnable state. This may come from Web Service timeout, the job will not execute and a new one will be trigered by ABC (if not already done)')" >
<FUNCTION_CALL name="raise_exception"  type="DI" >
<CONSTANT value="ERROR: This job is not in a runnable state. This may come from Web Service timeout, the job will not execute and a new one will be trigered by ABC (if not already done)" datatype="VARCHAR" size="168" />
</FUNCTION_CALL>
</DIExpression>
</DIFunctionCallStep>
</DIIf>
</DIIfStep>
<DIIfStep typeId="2" >
<DIExpression isString="true" expr="($l_job_name != job_name())" >
<LOGICAL_OP op="NE">
<VARIABLE_REFERENCE name="$l_job_name" />
<FUNCTION_CALL name="job_name"  type="DI" />
</LOGICAL_OP>
</DIExpression>
<DIIf>
<DIFunctionCallStep typeId="23" >
<DIExpression isString="true" expr="raise_exception((('ERROR: This job, {job_name()}, does not match the JOB_NAME of the step you are trying to run (' || $l_job_name) || ').'))" >
<FUNCTION_CALL name="raise_exception"  type="DI" >
<CONCAT>
<CONCAT>
<CONSTANT value="ERROR: This job, {job_name()}, does not match the JOB_NAME of the step you are trying to run (" datatype="VARCHAR" size="94" />
<VARIABLE_REFERENCE name="$l_job_name" />
</CONCAT>
<CONSTANT value=")." datatype="VARCHAR" size="2" />
</CONCAT>
</FUNCTION_CALL>
</DIExpression>
</DIFunctionCallStep>
</DIIf>
</DIIfStep>
<DIFunctionCallStep typeId="23" >
<DIExpression isString="true" expr="sql('DW_ABC_DS', 'update JOB_STREAM_STEP_RT set STATE = \'RUNNING\',&#xA;JOB_NAME = {job_name()}, START_TIME = {$l_job_start_date_vchar}&#xA;where MD_PROCESS_ID = {$p_process_id}')" >
<FUNCTION_CALL name="sql"  type="DI" >
<CONSTANT value="DW_ABC_DS" datatype="VARCHAR" size="9" />
<CONSTANT value="update JOB_STREAM_STEP_RT set STATE = 'RUNNING',&#xA;JOB_NAME = {job_name()}, START_TIME = {$l_job_start_date_vchar}&#xA;where MD_PROCESS_ID = {$p_process_id}" datatype="VARCHAR" size="150" />
</FUNCTION_CALL>
</DIExpression>
</DIFunctionCallStep>
<DIFunctionCallStep typeId="23" >
<DIExpression isString="true" expr="set_env('ETL_DEBUG_MODE', $p_debug_mode)" >
<FUNCTION_CALL name="set_env"  type="DI" >
<CONSTANT value="ETL_DEBUG_MODE" datatype="VARCHAR" size="14" />
<VARIABLE_REFERENCE name="$p_debug_mode" />
</FUNCTION_CALL>
</DIExpression>
</DIFunctionCallStep>
<DIFunctionCallStep typeId="23" >
<DIExpression isString="true" expr="set_env('ETL_BATCH_ID', $p_batch_id)" >
<FUNCTION_CALL name="set_env"  type="DI" >
<CONSTANT value="ETL_BATCH_ID" datatype="VARCHAR" size="12" />
<VARIABLE_REFERENCE name="$p_batch_id" />
</FUNCTION_CALL>
</DIExpression>
</DIFunctionCallStep>
<DIFunctionCallStep typeId="23" >
<DIExpression isString="true" expr="set_env('ETL_PROCESS_ID', $p_process_id)" >
<FUNCTION_CALL name="set_env"  type="DI" >
<CONSTANT value="ETL_PROCESS_ID" datatype="VARCHAR" size="14" />
<VARIABLE_REFERENCE name="$p_process_id" />
</FUNCTION_CALL>
</DIExpression>
</DIFunctionCallStep>
<DIIfStep typeId="2" >
<DIExpression isString="true" expr="(is_set_env('ETL_TRACE_LEVEL') != 1)" >
<LOGICAL_OP op="NE">
<FUNCTION_CALL name="is_set_env"  type="DI" >
<CONSTANT value="ETL_TRACE_LEVEL" datatype="VARCHAR" size="15" />
</FUNCTION_CALL>
<CONSTANT value="1" datatype="INT" />
</LOGICAL_OP>
</DIExpression>
<DIIf>
<DIFunctionCallStep typeId="23" >
<DIExpression isString="true" expr="set_env('ETL_TRACE_LEVEL', 'ALL')" >
<FUNCTION_CALL name="set_env"  type="DI" >
<CONSTANT value="ETL_TRACE_LEVEL" datatype="VARCHAR" size="15" />
<CONSTANT value="ALL" datatype="VARCHAR" size="3" />
</FUNCTION_CALL>
</DIExpression>
</DIFunctionCallStep>
</DIIf>
</DIIfStep>
<DIFunctionCallStep typeId="23" >
<DIExpression isString="true" expr="etl_print('********************************')" >
<FUNCTION_CALL name="etl_print"  type="DI" >
<CONSTANT value="********************************" datatype="VARCHAR" size="32" />
</FUNCTION_CALL>
</DIExpression>
</DIFunctionCallStep>
<DIFunctionCallStep typeId="23" >
<DIExpression isString="true" expr="etl_print('********************************')" >
<FUNCTION_CALL name="etl_print"  type="DI" >
<CONSTANT value="********************************" datatype="VARCHAR" size="32" />
</FUNCTION_CALL>
</DIExpression>
</DIFunctionCallStep>
<DIFunctionCallStep typeId="23" >
<DIExpression isString="true" expr="etl_print((('** The Job {job_name()} is starting' || ifthenelse((get_env('ETL_DEBUG_MODE') = '1'), ' in Debug mode', '')) || '.'))" >
<FUNCTION_CALL name="etl_print"  type="DI" >
<CONCAT>
<CONCAT>
<CONSTANT value="** The Job {job_name()} is starting" datatype="VARCHAR" size="35" />
<FUNCTION_CALL name="ifthenelse"  type="DI" >
<LOGICAL_OP op="EQ">
<FUNCTION_CALL name="get_env"  type="DI" >
<CONSTANT value="ETL_DEBUG_MODE" datatype="VARCHAR" size="14" />
</FUNCTION_CALL>
<CONSTANT value="1" datatype="VARCHAR" size="1" />
</LOGICAL_OP>
<CONSTANT value=" in Debug mode" datatype="VARCHAR" size="14" />
<CONSTANT value="" datatype="VARCHAR" size="0" />
</FUNCTION_CALL>
</CONCAT>
<CONSTANT value="." datatype="VARCHAR" size="1" />
</CONCAT>
</FUNCTION_CALL>
</DIExpression>
</DIFunctionCallStep>
<DIFunctionCallStep typeId="23" >
<DIExpression isString="true" expr="etl_print('**')" >
<FUNCTION_CALL name="etl_print"  type="DI" >
<CONSTANT value="**" datatype="VARCHAR" size="2" />
</FUNCTION_CALL>
</DIExpression>
</DIFunctionCallStep>
<DIFunctionCallStep typeId="23" >
<DIExpression isString="true" expr="etl_print('**')" >
<FUNCTION_CALL name="etl_print"  type="DI" >
<CONSTANT value="**" datatype="VARCHAR" size="2" />
</FUNCTION_CALL>
</DIExpression>
</DIFunctionCallStep>
<DIReturnStep typeId="30" >
<DIExpression isString="true" expr="5" >
<CONSTANT value="5" datatype="INT" />
</DIExpression>
</DIReturnStep>
</DISteps>
</DIScriptFunction>
<DIScriptFunction name="ABC_STARTWF_FN" typeId="11" >
<DIUIOptions>
<DIAttribute name="ui_script_text" value="ETL_PRINT( '        ********************************' );&#xA;ETL_PRINT( '        ********************************' );&#xA;ETL_PRINT( '        ** The workflow [workflow_name()] is starting' );&#xA;ETL_PRINT( '        **   user: ' || system_user_name() );&#xA;ETL_PRINT( '        **   detail name: ' || $p_detailname );&#xA;&#xA;# DELETE EXISTING WORKFLOW RECORD&#xA;#sql('DW_ABC_DS','delete from RDS_DBA.WFEXECUTION_DW&#xA;#where APPNAME = {$p_appname} AND JOBNAME = {job_name()} AND WFNAME = {workflow_name()}&#xA;#AND TARGET_TABLE = {$l_single_tablename}');&#xA;&#xA;# GET MAX_ID FROM THE WFEXECUTION_DW TABLE&#xA;#$job_ maxkey = sql('DW_ABC_DS', 'SELECT MAX(JOB_ID) FROM RDS_DBA.ETLSYNC_DW');&#xA;#$maxkey = $maxkey + 1;&#xA;&#xA;# INSERT WORKFLOW RECORD&#x9;&#x9;&#xD;&#xA;&#xA;#$l_stepdetail_id = sql('DW_ABC_DS','insert into JOB_STREAM_STEP_DETAIL_RT &#xA;#                (MD_PROCESS_ID, DETAIL_NAME, STATUS, START_TIME)  &#xA;#                VALUES ({$p_process_id}, {$p_detailname}, \'RUNNING\', {sysdate()});&#xA;#&#x9;&#x9;&#x9;&#x9;SELECT SCOPE_IDENTITY() AS NewStepDetailID');&#xA;$l_stepdetail_id = sql('DW_ABC_DS','insert into JOB_STREAM_STEP_DETAIL_RT &#xA;                (MD_PROCESS_ID, DETAIL_NAME, STATUS, START_TIME)  &#xA;                VALUES ({$p_process_id}, {$p_detailname}, \'RUNNING\', convert(varchar(25),convert(datetime,getdate(),111),127));&#xA;&#x9;&#x9;&#x9;&#x9;SELECT SCOPE_IDENTITY() AS NewStepDetailID');&#x9;&#xA;&#xA;set_env(workflow_name(), $l_stepdetail_id);&#xA;&#xA;# print('single_tablename = ' || $l_single_tablename);&#x9;   &#x9;&#xA;&#xA;return null;&#xA;"/>
</DIUIOptions>
<DIProperties>
<DIAttribute name="Acta_user_func_category" value="User_Script_Function"/>
</DIProperties>
<DIParameters><DIElement paramType="IN" name="$p_detailname" datatype="VARCHAR" size="100" >
</DIElement>
<DIElement paramType="IN" name="$p_process_id" datatype="DECIMAL" precision="19" scale="0" >
</DIElement>
</DIParameters>
<DIVariables><DIElement paramType="LOCAL" name="$l_stepdetail_id" datatype="DECIMAL" precision="19" scale="0" >
</DIElement>
</DIVariables>
<DIFunctionReturn datatype="INT" />
<DISteps>
<DIFunctionCallStep typeId="23" >
<DIExpression isString="true" expr="etl_print('        ********************************')" >
<FUNCTION_CALL name="etl_print"  type="DI" >
<CONSTANT value="        ********************************" datatype="VARCHAR" size="40" />
</FUNCTION_CALL>
</DIExpression>
</DIFunctionCallStep>
<DIFunctionCallStep typeId="23" >
<DIExpression isString="true" expr="etl_print('        ********************************')" >
<FUNCTION_CALL name="etl_print"  type="DI" >
<CONSTANT value="        ********************************" datatype="VARCHAR" size="40" />
</FUNCTION_CALL>
</DIExpression>
</DIFunctionCallStep>
<DIFunctionCallStep typeId="23" >
<DIExpression isString="true" expr="etl_print('        ** The workflow [workflow_name()] is starting')" >
<FUNCTION_CALL name="etl_print"  type="DI" >
<CONSTANT value="        ** The workflow [workflow_name()] is starting" datatype="VARCHAR" size="53" />
</FUNCTION_CALL>
</DIExpression>
</DIFunctionCallStep>
<DIFunctionCallStep typeId="23" >
<DIExpression isString="true" expr="etl_print(('        **   user: ' || system_user_name()))" >
<FUNCTION_CALL name="etl_print"  type="DI" >
<CONCAT>
<CONSTANT value="        **   user: " datatype="VARCHAR" size="19" />
<FUNCTION_CALL name="system_user_name"  type="DI" />
</CONCAT>
</FUNCTION_CALL>
</DIExpression>
</DIFunctionCallStep>
<DIFunctionCallStep typeId="23" >
<DIExpression isString="true" expr="etl_print(('        **   detail name: ' || $p_detailname))" >
<FUNCTION_CALL name="etl_print"  type="DI" >
<CONCAT>
<CONSTANT value="        **   detail name: " datatype="VARCHAR" size="26" />
<VARIABLE_REFERENCE name="$p_detailname" />
</CONCAT>
</FUNCTION_CALL>
</DIExpression>
</DIFunctionCallStep>
<DIAssignmentStep typeId="12" variable="$l_stepdetail_id" >
<DIExpression isString="true" expr="sql('DW_ABC_DS', 'insert into JOB_STREAM_STEP_DETAIL_RT &#xA;                (MD_PROCESS_ID, DETAIL_NAME, STATUS, START_TIME)  &#xA;                VALUES ({$p_process_id}, {$p_detailname}, \'RUNNING\', convert(varchar(25),convert(datetime,getdate(),111),127));&#xA;&#x9;&#x9;&#x9;&#x9;SELECT SCOPE_IDENTITY() AS NewStepDetailID')" >
<FUNCTION_CALL name="sql"  type="DI" >
<CONSTANT value="DW_ABC_DS" datatype="VARCHAR" size="9" />
<CONSTANT value="insert into JOB_STREAM_STEP_DETAIL_RT &#xA;                (MD_PROCESS_ID, DETAIL_NAME, STATUS, START_TIME)  &#xA;                VALUES ({$p_process_id}, {$p_detailname}, 'RUNNING', convert(varchar(25),convert(datetime,getdate(),111),127));&#xA;&#x9;&#x9;&#x9;&#x9;SELECT SCOPE_IDENTITY() AS NewStepDetailID" datatype="VARCHAR" size="280" />
</FUNCTION_CALL>
</DIExpression>
</DIAssignmentStep>
<DIFunctionCallStep typeId="23" >
<DIExpression isString="true" expr="set_env(workflow_name(), $l_stepdetail_id)" >
<FUNCTION_CALL name="set_env"  type="DI" >
<FUNCTION_CALL name="workflow_name"  type="DI" />
<VARIABLE_REFERENCE name="$l_stepdetail_id" />
</FUNCTION_CALL>
</DIExpression>
</DIFunctionCallStep>
<DIReturnStep typeId="30" >
<DIExpression isString="true" expr=" NULL " >
<CONSTANT_NULL /></DIExpression>
</DIReturnStep>
</DISteps>
</DIScriptFunction>
<DIScriptFunction name="CSNP_RERUN_CLEANUP" typeId="11" >
<DIUIOptions>
<DIAttribute name="ui_script_text" value="# Function Name: CSNP_RERUN_CLEANUP&#xA;# Author: Charles Westropp&#xA;# Date: 10/7/2009&#xA;# Inputs: Source Table Name, BATCH_ID, NEW FLAG&#xA;# Outputs: None&#xA;# Description: This function takes a source table name as input and deletes&#xA;#              any records in the TSNP table with the same BATCH_ID and BUSINESS_KEY&#xA;#              that already exist in the TSNP table and are marked as NEW in the EXT&#xA;#              table&#xA;&#xA;ETL_PRINT( '        ** CSNP_Rerun_Cleanup is starting' );&#xA;ETL_PRINT( '        **   Source Table: ' || $P_SOURCE_TABLE );&#xA;ETL_PRINT( '        **   BatchId: ' || $P_BATCH_ID );&#xA;ETL_PRINT( '        **   NEW Flag: ' || $P_FLAG_NEW );&#xA;&#xA;$l_return = sql ('DWSTAGING_DS','DELETE FROM [$P_SOURCE_TABLE]_CSNP WHERE MD_BUSINESS_KEY IN &#xA;                  (SELECT MD_BUSINESS_KEY FROM [$P_SOURCE_TABLE]_MSC WHERE MD_FLAG={$P_FLAG_NEW}) AND MD_BATCH_ID = [$P_BATCH_ID]');&#xA;&#xA;ETL_PRINT( '        ** CSNP_Rerun_Cleanup finished for Source Table [$P_SOURCE_TABLE]');&#xA;&#xA;return null;&#xA;"/>
</DIUIOptions>
<DIProperties>
<DIAttribute name="Acta_user_func_category" value="User_Script_Function"/>
<DIAttribute name="Description" value="This function is used to cleanup the CSNP table in the case of a rerun."/>
<DIAttribute name="Parallelizable" value="no"/>
<DIAttribute name="isScriptValidationFunction" value="no"/>
</DIProperties>
<DIParameters><DIElement paramType="IN" name="$P_SOURCE_TABLE" datatype="VARCHAR" size="40" >
</DIElement>
<DIElement paramType="IN" name="$P_BATCH_ID" datatype="INT" >
</DIElement>
<DIElement paramType="IN" name="$P_FLAG_NEW" datatype="VARCHAR" size="4" >
</DIElement>
</DIParameters>
<DIVariables><DIElement paramType="LOCAL" name="$l_return" datatype="VARCHAR" size="40" >
</DIElement>
</DIVariables>
<DIFunctionReturn datatype="INT" />
<DISteps>
<DIFunctionCallStep typeId="23" >
<DIExpression isString="true" expr="etl_print('        ** CSNP_Rerun_Cleanup is starting')" >
<FUNCTION_CALL name="etl_print"  type="DI" >
<CONSTANT value="        ** CSNP_Rerun_Cleanup is starting" datatype="VARCHAR" size="41" />
</FUNCTION_CALL>
</DIExpression>
</DIFunctionCallStep>
<DIFunctionCallStep typeId="23" >
<DIExpression isString="true" expr="etl_print(('        **   Source Table: ' || $P_SOURCE_TABLE))" >
<FUNCTION_CALL name="etl_print"  type="DI" >
<CONCAT>
<CONSTANT value="        **   Source Table: " datatype="VARCHAR" size="27" />
<VARIABLE_REFERENCE name="$P_SOURCE_TABLE" />
</CONCAT>
</FUNCTION_CALL>
</DIExpression>
</DIFunctionCallStep>
<DIFunctionCallStep typeId="23" >
<DIExpression isString="true" expr="etl_print(('        **   BatchId: ' || $P_BATCH_ID))" >
<FUNCTION_CALL name="etl_print"  type="DI" >
<CONCAT>
<CONSTANT value="        **   BatchId: " datatype="VARCHAR" size="22" />
<VARIABLE_REFERENCE name="$P_BATCH_ID" />
</CONCAT>
</FUNCTION_CALL>
</DIExpression>
</DIFunctionCallStep>
<DIFunctionCallStep typeId="23" >
<DIExpression isString="true" expr="etl_print(('        **   NEW Flag: ' || $P_FLAG_NEW))" >
<FUNCTION_CALL name="etl_print"  type="DI" >
<CONCAT>
<CONSTANT value="        **   NEW Flag: " datatype="VARCHAR" size="23" />
<VARIABLE_REFERENCE name="$P_FLAG_NEW" />
</CONCAT>
</FUNCTION_CALL>
</DIExpression>
</DIFunctionCallStep>
<DIAssignmentStep typeId="12" variable="$l_return" >
<DIExpression isString="true" expr="sql('DWSTAGING_DS', 'DELETE FROM [$P_SOURCE_TABLE]_CSNP WHERE MD_BUSINESS_KEY IN &#xA;                  (SELECT MD_BUSINESS_KEY FROM [$P_SOURCE_TABLE]_MSC WHERE MD_FLAG={$P_FLAG_NEW}) AND MD_BATCH_ID = [$P_BATCH_ID]')" >
<FUNCTION_CALL name="sql"  type="DI" >
<CONSTANT value="DWSTAGING_DS" datatype="VARCHAR" size="12" />
<CONSTANT value="DELETE FROM [$P_SOURCE_TABLE]_CSNP WHERE MD_BUSINESS_KEY IN &#xA;                  (SELECT MD_BUSINESS_KEY FROM [$P_SOURCE_TABLE]_MSC WHERE MD_FLAG={$P_FLAG_NEW}) AND MD_BATCH_ID = [$P_BATCH_ID]" datatype="VARCHAR" size="190" />
</FUNCTION_CALL>
</DIExpression>
</DIAssignmentStep>
<DIFunctionCallStep typeId="23" >
<DIExpression isString="true" expr="etl_print('        ** CSNP_Rerun_Cleanup finished for Source Table [$P_SOURCE_TABLE]')" >
<FUNCTION_CALL name="etl_print"  type="DI" >
<CONSTANT value="        ** CSNP_Rerun_Cleanup finished for Source Table [$P_SOURCE_TABLE]" datatype="VARCHAR" size="73" />
</FUNCTION_CALL>
</DIExpression>
</DIFunctionCallStep>
<DIReturnStep typeId="30" >
<DIExpression isString="true" expr=" NULL " >
<CONSTANT_NULL /></DIExpression>
</DIReturnStep>
</DISteps>
</DIScriptFunction>
<DIScriptFunction name="ETL_PRINT" typeId="11" >
<DIUIOptions>
<DIAttribute name="ui_script_text" value="# 1/2 Retrieve contextual information from the environment&#xA;if ( is_set_env( 'ETL_BATCH_ID' ) = 1 )&#xA;begin&#xA;&#x9;$l_batch_id = get_env( 'ETL_BATCH_ID' );&#xA;end&#xA;else&#xA;begin&#xA;&#x9;$l_batch_id = '-';&#xA;end&#xA;&#xA;if ( is_set_env( 'ETL_PROCESS_ID' ) = 1 )&#xA;begin&#xA;&#x9;$l_process_id = get_env( 'ETL_PROCESS_ID' );&#x9;&#xA;end&#xA;else&#xA;begin&#xA;&#x9;$l_process_id = '-';&#x9;&#xA;end&#xA;&#xA;# 2/2 Really print&#xA;if ( get_env('ETL_TRACE_LEVEL') = 'ALL' )&#xA;begin&#xA;&#x9;if ( is_set_env( workflow_name() ) = 1 )&#xA;&#x9;begin&#xA;&#x9;&#x9;$l_stepdetail_id = get_env( workflow_name() );&#xA;&#x9;&#x9;print( '\[Batch:' || $l_batch_id || '\] \[Proc:' || $l_process_id || '\] \[Detail:' || $l_stepdetail_id || '\] ' || $p_MESSAGE );&#xA;&#x9;end&#xA;&#x9;else&#xA;&#x9;begin&#xA;    &#x9;print( '\[Batch:' || $l_batch_id || '\] \[Proc:' || $l_process_id || '\] ' || $p_MESSAGE );&#xA;&#x9;end&#xA;end&#xA;&#xA;return null;&#xA;"/>
</DIUIOptions>
<DIProperties>
<DIAttribute name="Acta_user_func_category" value="User_Script_Function"/>
<DIAttribute name="Description" value="This function is internal and should NOT be used by application developers.&#xA;&#xA;This function prints the parameter message to the logs with contextual information (batch id, process id) as set by the ABC_STARTJB_FN function.&#xA;&#xA;This trace file is currently the standard Data Services trace file. for instance: C:\Program Files\Business Objects\BusinessObjects Data Services\log\tracelog.txt"/>
<DIAttribute name="Parallelizable" value="no"/>
<DIAttribute name="isScriptValidationFunction" value="no"/>
</DIProperties>
<DIParameters><DIElement paramType="IN" name="$p_MESSAGE" datatype="VARCHAR" size="256" >
</DIElement>
</DIParameters>
<DIVariables><DIElement paramType="LOCAL" name="$l_batch_id" datatype="INT" >
</DIElement>
<DIElement paramType="LOCAL" name="$l_process_id" datatype="INT" >
</DIElement>
<DIElement paramType="LOCAL" name="$l_stepdetail_id" datatype="DECIMAL" precision="19" scale="0" >
</DIElement>
</DIVariables>
<DIFunctionReturn datatype="INT" />
<DISteps>
<DIIfStep typeId="2" >
<DIExpression isString="true" expr="(is_set_env('ETL_BATCH_ID') = 1)" >
<LOGICAL_OP op="EQ">
<FUNCTION_CALL name="is_set_env"  type="DI" >
<CONSTANT value="ETL_BATCH_ID" datatype="VARCHAR" size="12" />
</FUNCTION_CALL>
<CONSTANT value="1" datatype="INT" />
</LOGICAL_OP>
</DIExpression>
<DIIf>
<DIAssignmentStep typeId="12" variable="$l_batch_id" >
<DIExpression isString="true" expr="get_env('ETL_BATCH_ID')" >
<FUNCTION_CALL name="get_env"  type="DI" >
<CONSTANT value="ETL_BATCH_ID" datatype="VARCHAR" size="12" />
</FUNCTION_CALL>
</DIExpression>
</DIAssignmentStep>
</DIIf>
<DIElse>
<DIAssignmentStep typeId="12" variable="$l_batch_id" >
<DIExpression isString="true" expr="'-'" >
<CONSTANT value="-" datatype="VARCHAR" size="1" />
</DIExpression>
</DIAssignmentStep>
</DIElse>
</DIIfStep>
<DIIfStep typeId="2" >
<DIExpression isString="true" expr="(is_set_env('ETL_PROCESS_ID') = 1)" >
<LOGICAL_OP op="EQ">
<FUNCTION_CALL name="is_set_env"  type="DI" >
<CONSTANT value="ETL_PROCESS_ID" datatype="VARCHAR" size="14" />
</FUNCTION_CALL>
<CONSTANT value="1" datatype="INT" />
</LOGICAL_OP>
</DIExpression>
<DIIf>
<DIAssignmentStep typeId="12" variable="$l_process_id" >
<DIExpression isString="true" expr="get_env('ETL_PROCESS_ID')" >
<FUNCTION_CALL name="get_env"  type="DI" >
<CONSTANT value="ETL_PROCESS_ID" datatype="VARCHAR" size="14" />
</FUNCTION_CALL>
</DIExpression>
</DIAssignmentStep>
</DIIf>
<DIElse>
<DIAssignmentStep typeId="12" variable="$l_process_id" >
<DIExpression isString="true" expr="'-'" >
<CONSTANT value="-" datatype="VARCHAR" size="1" />
</DIExpression>
</DIAssignmentStep>
</DIElse>
</DIIfStep>
<DIIfStep typeId="2" >
<DIExpression isString="true" expr="(get_env('ETL_TRACE_LEVEL') = 'ALL')" >
<LOGICAL_OP op="EQ">
<FUNCTION_CALL name="get_env"  type="DI" >
<CONSTANT value="ETL_TRACE_LEVEL" datatype="VARCHAR" size="15" />
</FUNCTION_CALL>
<CONSTANT value="ALL" datatype="VARCHAR" size="3" />
</LOGICAL_OP>
</DIExpression>
<DIIf>
<DIIfStep typeId="2" >
<DIExpression isString="true" expr="(is_set_env(workflow_name()) = 1)" >
<LOGICAL_OP op="EQ">
<FUNCTION_CALL name="is_set_env"  type="DI" >
<FUNCTION_CALL name="workflow_name"  type="DI" />
</FUNCTION_CALL>
<CONSTANT value="1" datatype="INT" />
</LOGICAL_OP>
</DIExpression>
<DIIf>
<DIAssignmentStep typeId="12" variable="$l_stepdetail_id" >
<DIExpression isString="true" expr="get_env(workflow_name())" >
<FUNCTION_CALL name="get_env"  type="DI" >
<FUNCTION_CALL name="workflow_name"  type="DI" />
</FUNCTION_CALL>
</DIExpression>
</DIAssignmentStep>
<DIFunctionCallStep typeId="23" >
<DIExpression isString="true" expr="print(((((((('\\[Batch:' || $l_batch_id) || '\\] \\[Proc:') || $l_process_id) || '\\] \\[Detail:') || $l_stepdetail_id) || '\\] ') || $p_MESSAGE))" >
<FUNCTION_CALL name="print"  type="DI" >
<CONCAT>
<CONCAT>
<CONCAT>
<CONCAT>
<CONCAT>
<CONCAT>
<CONCAT>
<CONSTANT value="\[Batch:" datatype="VARCHAR" size="8" />
<VARIABLE_REFERENCE name="$l_batch_id" />
</CONCAT>
<CONSTANT value="\] \[Proc:" datatype="VARCHAR" size="10" />
</CONCAT>
<VARIABLE_REFERENCE name="$l_process_id" />
</CONCAT>
<CONSTANT value="\] \[Detail:" datatype="VARCHAR" size="12" />
</CONCAT>
<VARIABLE_REFERENCE name="$l_stepdetail_id" />
</CONCAT>
<CONSTANT value="\] " datatype="VARCHAR" size="3" />
</CONCAT>
<VARIABLE_REFERENCE name="$p_MESSAGE" />
</CONCAT>
</FUNCTION_CALL>
</DIExpression>
</DIFunctionCallStep>
</DIIf>
<DIElse>
<DIFunctionCallStep typeId="23" >
<DIExpression isString="true" expr="print(((((('\\[Batch:' || $l_batch_id) || '\\] \\[Proc:') || $l_process_id) || '\\] ') || $p_MESSAGE))" >
<FUNCTION_CALL name="print"  type="DI" >
<CONCAT>
<CONCAT>
<CONCAT>
<CONCAT>
<CONCAT>
<CONSTANT value="\[Batch:" datatype="VARCHAR" size="8" />
<VARIABLE_REFERENCE name="$l_batch_id" />
</CONCAT>
<CONSTANT value="\] \[Proc:" datatype="VARCHAR" size="10" />
</CONCAT>
<VARIABLE_REFERENCE name="$l_process_id" />
</CONCAT>
<CONSTANT value="\] " datatype="VARCHAR" size="3" />
</CONCAT>
<VARIABLE_REFERENCE name="$p_MESSAGE" />
</CONCAT>
</FUNCTION_CALL>
</DIExpression>
</DIFunctionCallStep>
</DIElse>
</DIIfStep>
</DIIf>
<DIElse>
</DIElse>
</DIIfStep>
<DIReturnStep typeId="30" >
<DIExpression isString="true" expr=" NULL " >
<CONSTANT_NULL /></DIExpression>
</DIReturnStep>
</DISteps>
</DIScriptFunction>
<DIScriptFunction name="GET_SOURCE_XREF_ID_FN" typeId="11" >
<DIUIOptions>
<DIAttribute name="ui_script_text" value="# THIS FUNCTION TAKES THE INCOMING SOURCE ENTITY TO FIND THE CORRESPONDING XREF_ID VALUE&#xA;PRINT(' ');&#xA;PRINT(' ');&#xA;PRINT('*** STARTING GET_SOURCE_XREF_ID_FN function in workflow: [workflow_name()] as user: [system_user_name()]');&#xA;&#xA;# GET THE SCHEMA OWNER FOR THE DATASTORE&#xA;$L_SCHEMA_OWNER = db_owner('DWSTAGING_DS', 'DWSTAGING_ALIAS');&#xA;PRINT(' DWSTAGING_DS.DWSTAGING_ALIAS SCHEMA OWNER: ' || $L_SCHEMA_OWNER);&#xA;PRINT(' INCOMING VALUES: SOURCE ENTITY= ' || $P_SOURCE_ENTITY);&#xA;&#xA;# QUERY THE XREF TABLES TO GET THE XREF_ID&#xA;$P_RET_SOURCE_XREF_ID = sql('DWSTAGING_DS', 'SELECT SOURCE_INTEGRATION_XREF_ID FROM [$L_SCHEMA_OWNER].SOURCE_INTEGRATION_XREF WHERE SINGLE_SOURCE_IDENTITY_NAME = {$P_SOURCE_ENTITY}');&#xA;&#xA;# IF THE VALUE IS EMPTY OR NOTHING IS FOUND, THEN RETURN DEFAULT OF -2&#xA;IF (($P_RET_SOURCE_XREF_ID = '') OR ($P_RET_SOURCE_XREF_ID IS NULL))&#xA;begin&#xA;  PRINT(' SOURCE ENTITY NOT FOUND ');&#xA;  $P_RET_SOURCE_XREF_ID = -2;&#x9;&#xA;end&#xA;&#xA;# PRINT OUTGOING VALUES &#xA;PRINT('OUTGOING VALUES: SOURCE_XREF_ID= ' || $P_RET_SOURCE_XREF_ID);&#xA;PRINT('*** ENDING GET_SOURCE_XREF_ID_FN function in workflow: [workflow_name()] as user: [system_user_name()]');&#xA;PRINT(' ');&#xA;PRINT(' ');&#xA;&#xA;# RETURN&#xA;Return($P_RET_SOURCE_XREF_ID);"/>
</DIUIOptions>
<DIProperties>
<DIAttribute name="Acta_user_func_category" value="User_Script_Function"/>
</DIProperties>
<DIParameters><DIElement paramType="IN" name="$P_SOURCE_ENTITY" datatype="VARCHAR" size="200" >
</DIElement>
<DIElement paramType="OUT" name="$P_RET_SOURCE_XREF_ID" datatype="DECIMAL" precision="18" scale="0" >
</DIElement>
</DIParameters>
<DIVariables><DIElement paramType="LOCAL" name="$L_SCHEMA_OWNER" datatype="VARCHAR" size="60" >
</DIElement>
<DIElement paramType="LOCAL" name="$L_RET_SOURCE_XREF_ID" datatype="DECIMAL" precision="18" scale="0" >
</DIElement>
</DIVariables>
<DIFunctionReturn datatype="INT" />
<DISteps>
<DIFunctionCallStep typeId="23" >
<DIExpression isString="true" expr="print(' ')" >
<FUNCTION_CALL name="print"  type="DI" >
<CONSTANT value=" " datatype="VARCHAR" size="1" />
</FUNCTION_CALL>
</DIExpression>
</DIFunctionCallStep>
<DIFunctionCallStep typeId="23" >
<DIExpression isString="true" expr="print(' ')" >
<FUNCTION_CALL name="print"  type="DI" >
<CONSTANT value=" " datatype="VARCHAR" size="1" />
</FUNCTION_CALL>
</DIExpression>
</DIFunctionCallStep>
<DIFunctionCallStep typeId="23" >
<DIExpression isString="true" expr="print('*** STARTING GET_SOURCE_XREF_ID_FN function in workflow: [workflow_name()] as user: [system_user_name()]')" >
<FUNCTION_CALL name="print"  type="DI" >
<CONSTANT value="*** STARTING GET_SOURCE_XREF_ID_FN function in workflow: [workflow_name()] as user: [system_user_name()]" datatype="VARCHAR" size="104" />
</FUNCTION_CALL>
</DIExpression>
</DIFunctionCallStep>
<DIAssignmentStep typeId="12" variable="$L_SCHEMA_OWNER" >
<DIExpression isString="true" expr="db_owner('DWSTAGING_DS', 'DWSTAGING_ALIAS')" >
<FUNCTION_CALL name="db_owner"  type="DI" >
<CONSTANT value="DWSTAGING_DS" datatype="VARCHAR" size="12" />
<CONSTANT value="DWSTAGING_ALIAS" datatype="VARCHAR" size="15" />
</FUNCTION_CALL>
</DIExpression>
</DIAssignmentStep>
<DIFunctionCallStep typeId="23" >
<DIExpression isString="true" expr="print((' DWSTAGING_DS.DWSTAGING_ALIAS SCHEMA OWNER: ' || $L_SCHEMA_OWNER))" >
<FUNCTION_CALL name="print"  type="DI" >
<CONCAT>
<CONSTANT value=" DWSTAGING_DS.DWSTAGING_ALIAS SCHEMA OWNER: " datatype="VARCHAR" size="44" />
<VARIABLE_REFERENCE name="$L_SCHEMA_OWNER" />
</CONCAT>
</FUNCTION_CALL>
</DIExpression>
</DIFunctionCallStep>
<DIFunctionCallStep typeId="23" >
<DIExpression isString="true" expr="print((' INCOMING VALUES: SOURCE ENTITY= ' || $P_SOURCE_ENTITY))" >
<FUNCTION_CALL name="print"  type="DI" >
<CONCAT>
<CONSTANT value=" INCOMING VALUES: SOURCE ENTITY= " datatype="VARCHAR" size="33" />
<VARIABLE_REFERENCE name="$P_SOURCE_ENTITY" />
</CONCAT>
</FUNCTION_CALL>
</DIExpression>
</DIFunctionCallStep>
<DIAssignmentStep typeId="12" variable="$P_RET_SOURCE_XREF_ID" >
<DIExpression isString="true" expr="sql('DWSTAGING_DS', 'SELECT SOURCE_INTEGRATION_XREF_ID FROM [$L_SCHEMA_OWNER].SOURCE_INTEGRATION_XREF WHERE SINGLE_SOURCE_IDENTITY_NAME = {$P_SOURCE_ENTITY}')" >
<FUNCTION_CALL name="sql"  type="DI" >
<CONSTANT value="DWSTAGING_DS" datatype="VARCHAR" size="12" />
<CONSTANT value="SELECT SOURCE_INTEGRATION_XREF_ID FROM [$L_SCHEMA_OWNER].SOURCE_INTEGRATION_XREF WHERE SINGLE_SOURCE_IDENTITY_NAME = {$P_SOURCE_ENTITY}" datatype="VARCHAR" size="135" />
</FUNCTION_CALL>
</DIExpression>
</DIAssignmentStep>
<DIIfStep typeId="2" >
<DIExpression isString="true" expr="(($P_RET_SOURCE_XREF_ID = '') OR&#xA;   ($P_RET_SOURCE_XREF_ID IS  NULL ))" >
<LOGICAL_OP op="OR">
<LOGICAL_OP op="EQ">
<VARIABLE_REFERENCE name="$P_RET_SOURCE_XREF_ID" />
<CONSTANT value="" datatype="VARCHAR" size="0" />
</LOGICAL_OP>
<LOGICAL_OP op="IS NULL">
<VARIABLE_REFERENCE name="$P_RET_SOURCE_XREF_ID" />
</LOGICAL_OP>
</LOGICAL_OP>
</DIExpression>
<DIIf>
<DIFunctionCallStep typeId="23" >
<DIExpression isString="true" expr="print(' SOURCE ENTITY NOT FOUND ')" >
<FUNCTION_CALL name="print"  type="DI" >
<CONSTANT value=" SOURCE ENTITY NOT FOUND " datatype="VARCHAR" size="25" />
</FUNCTION_CALL>
</DIExpression>
</DIFunctionCallStep>
<DIAssignmentStep typeId="12" variable="$P_RET_SOURCE_XREF_ID" >
<DIExpression isString="true" expr="-2" >
<CONSTANT value="-2" datatype="INT" />
</DIExpression>
</DIAssignmentStep>
</DIIf>
</DIIfStep>
<DIFunctionCallStep typeId="23" >
<DIExpression isString="true" expr="print(('OUTGOING VALUES: SOURCE_XREF_ID= ' || $P_RET_SOURCE_XREF_ID))" >
<FUNCTION_CALL name="print"  type="DI" >
<CONCAT>
<CONSTANT value="OUTGOING VALUES: SOURCE_XREF_ID= " datatype="VARCHAR" size="33" />
<VARIABLE_REFERENCE name="$P_RET_SOURCE_XREF_ID" />
</CONCAT>
</FUNCTION_CALL>
</DIExpression>
</DIFunctionCallStep>
<DIFunctionCallStep typeId="23" >
<DIExpression isString="true" expr="print('*** ENDING GET_SOURCE_XREF_ID_FN function in workflow: [workflow_name()] as user: [system_user_name()]')" >
<FUNCTION_CALL name="print"  type="DI" >
<CONSTANT value="*** ENDING GET_SOURCE_XREF_ID_FN function in workflow: [workflow_name()] as user: [system_user_name()]" datatype="VARCHAR" size="102" />
</FUNCTION_CALL>
</DIExpression>
</DIFunctionCallStep>
<DIFunctionCallStep typeId="23" >
<DIExpression isString="true" expr="print(' ')" >
<FUNCTION_CALL name="print"  type="DI" >
<CONSTANT value=" " datatype="VARCHAR" size="1" />
</FUNCTION_CALL>
</DIExpression>
</DIFunctionCallStep>
<DIFunctionCallStep typeId="23" >
<DIExpression isString="true" expr="print(' ')" >
<FUNCTION_CALL name="print"  type="DI" >
<CONSTANT value=" " datatype="VARCHAR" size="1" />
</FUNCTION_CALL>
</DIExpression>
</DIFunctionCallStep>
<DIReturnStep typeId="30" >
<DIExpression isString="true" expr="$P_RET_SOURCE_XREF_ID" >
<VARIABLE_REFERENCE name="$P_RET_SOURCE_XREF_ID" />
</DIExpression>
</DIReturnStep>
</DISteps>
</DIScriptFunction>
<DIJob name="EXTERNAL_FILE_JB" typeId="2" >
<DIProperties>
<DIAttribute name="Description" value="The EXTERNAL_FILE_JB is responsible for the dimensional transform process that takes data from the external files and converts data into the dimension format."/>
<DIAttribute name="Web_Service_Enabled" value="YES"/>
</DIProperties>
<DIVariables>
<DIElement paramType="LOCAL" name="$L_SOURCE_XREF_ID" datatype="DECIMAL" precision="18" scale="0" >
</DIElement>
<DIElement paramType="GLOBAL" name="$G_DEBUG_MODE" datatype="INT" >
</DIElement>
<DIElement paramType="GLOBAL" name="$G_FLAG_DELETE" datatype="VARCHAR" size="6" >
</DIElement>
<DIElement paramType="GLOBAL" name="$G_FLAG_UPDATE" datatype="VARCHAR" size="6" >
</DIElement>
<DIElement paramType="GLOBAL" name="$G_FLAG_NEW" datatype="VARCHAR" size="6" >
</DIElement>
<DIElement paramType="GLOBAL" name="$G_MODDATE_LOC" datatype="DATETIME" >
</DIElement>
<DIElement paramType="GLOBAL" name="$G_BATCH_ID" datatype="DECIMAL" precision="19" scale="0" >
</DIElement>
<DIElement paramType="GLOBAL" name="$G_PROCESS_ID" datatype="DECIMAL" precision="19" scale="0" >
</DIElement>
<DIElement paramType="GLOBAL" name="$G_TRACE_MODE" datatype="INT" >
</DIElement>
<DIElement paramType="GLOBAL" name="$G_EXTN_FILELOCATION" datatype="VARCHAR" size="200" >
</DIElement>
</DIVariables>
<DISteps>
<DITryStep typeId="13" >
<DIUIOptions>
<DIAttribute name="ui_display_name" value="EXTN_TRY"/>
</DIUIOptions>
<DISteps>
<DIScript>
<DIUIOptions>
<DIAttribute name="ObjectDesc" value="GV_SC is used to set global variables and initiates the metadata tracking for the Job"/>
<DIAttribute name="ui_display_name" value="START_SC"/>
<DIAttribute name="ui_script_text" value="#Get the location of the source files.&#xD;&#xA;&#xD;&#xA;$G_EXTN_FILELOCATION = lookup_ext([DW_METADATA_DS.DW_METADATA_ALIAS.FILE_LOCATION_INFO, 'PRE_LOAD_CACHE', 'MAX'], [ FILE_LOCATION ], [ NULL ], [ SOURCE, '=', 'EXTERNAL' ]) &#xD;&#xA;SET(&quot;run_as_separate_process&quot; = 'no');&#xD;&#xA;&#xD;&#xA;&#xD;&#xA;# CALL FUNCTION TO TRACK START OF JOB&#xD;&#xA;ABC_STARTJB_FN($G_PROCESS_ID, $G_DEBUG_MODE, $G_BATCH_ID);&#xD;&#xA;&#xD;&#xA;ETL_PRINT('****************************************************************************************************************');&#xD;&#xA;ETL_PRINT(' ');&#xD;&#xA;ETL_PRINT('The Source Files are located in the '||$G_EXTN_FILELOCATION||' directory.' );&#xD;&#xA;ETL_PRINT(' ');&#xD;&#xA;ETL_PRINT('****************************************************************************************************************');&#xD;&#xA;&#xD;&#xA;&#xD;&#xA;"/>
</DIUIOptions>
<DIAssignmentStep typeId="12" variable="$G_EXTN_FILELOCATION" >
<DIExpression isString="true" expr="lookup_ext([DW_METADATA_DS.DW_METADATA_ALIAS.FILE_LOCATION_INFO, 'PRE_LOAD_CACHE', 'MAX'], [ FILE_LOCATION ], [  NULL  ], [ SOURCE, '=', 'EXTERNAL' ]) &#xA;SET(&quot;run_as_separate_process&quot; = 'no')&#xA;" >
<FUNCTION_CALL name="lookup_ext"  type="DI" tableDatastore="DW_METADATA_DS" tableOwner="DW_METADATA_ALIAS" tableName="FILE_LOCATION_INFO" >
<CONSTANT value="PRE_LOAD_CACHE" datatype="VARCHAR" size="14" />
<CONSTANT value="MAX" datatype="VARCHAR" size="3" />
<CONSTANT value="EXTERNAL" datatype="VARCHAR" size="8" />
<CONSTANT_NULL /><DIAttributes>
<DIAttribute name="run_as_separate_process" value="no"/>
</DIAttributes>
</FUNCTION_CALL>
</DIExpression>
</DIAssignmentStep>
<DIFunctionCallStep typeId="23" >
<DIExpression isString="true" expr="abc_startjb_fn($G_PROCESS_ID, $G_DEBUG_MODE, $G_BATCH_ID)" >
<FUNCTION_CALL name="abc_startjb_fn"  type="DI" >
<VARIABLE_REFERENCE name="$G_PROCESS_ID" />
<VARIABLE_REFERENCE name="$G_DEBUG_MODE" />
<VARIABLE_REFERENCE name="$G_BATCH_ID" />
</FUNCTION_CALL>
</DIExpression>
</DIFunctionCallStep>
<DIFunctionCallStep typeId="23" >
<DIExpression isString="true" expr="etl_print('****************************************************************************************************************')" >
<FUNCTION_CALL name="etl_print"  type="DI" >
<CONSTANT value="****************************************************************************************************************" datatype="VARCHAR" size="112" />
</FUNCTION_CALL>
</DIExpression>
</DIFunctionCallStep>
<DIFunctionCallStep typeId="23" >
<DIExpression isString="true" expr="etl_print(' ')" >
<FUNCTION_CALL name="etl_print"  type="DI" >
<CONSTANT value=" " datatype="VARCHAR" size="1" />
</FUNCTION_CALL>
</DIExpression>
</DIFunctionCallStep>
<DIFunctionCallStep typeId="23" >
<DIExpression isString="true" expr="etl_print((('The Source Files are located in the ' || $G_EXTN_FILELOCATION) || ' directory.'))" >
<FUNCTION_CALL name="etl_print"  type="DI" >
<CONCAT>
<CONCAT>
<CONSTANT value="The Source Files are located in the " datatype="VARCHAR" size="36" />
<VARIABLE_REFERENCE name="$G_EXTN_FILELOCATION" />
</CONCAT>
<CONSTANT value=" directory." datatype="VARCHAR" size="11" />
</CONCAT>
</FUNCTION_CALL>
</DIExpression>
</DIFunctionCallStep>
<DIFunctionCallStep typeId="23" >
<DIExpression isString="true" expr="etl_print(' ')" >
<FUNCTION_CALL name="etl_print"  type="DI" >
<CONSTANT value=" " datatype="VARCHAR" size="1" />
</FUNCTION_CALL>
</DIExpression>
</DIFunctionCallStep>
<DIFunctionCallStep typeId="23" >
<DIExpression isString="true" expr="etl_print('****************************************************************************************************************')" >
<FUNCTION_CALL name="etl_print"  type="DI" >
<CONSTANT value="****************************************************************************************************************" datatype="VARCHAR" size="112" />
</FUNCTION_CALL>
</DIExpression>
</DIFunctionCallStep>
</DIScript>
<DICallStep typeId="0"  calledObjectType="Workflow" name="EXTN_CONT_WF" >
</DICallStep>
<DIScript>
<DIUIOptions>
<DIAttribute name="ui_display_name" value="END_SC"/>
<DIAttribute name="ui_script_text" value="# CALL FUNCTION TO TRACK END OF JOB&#xA;ABC_ENDJB_FN($G_PROCESS_ID );"/>
</DIUIOptions>
<DIFunctionCallStep typeId="23" >
<DIExpression isString="true" expr="abc_endjb_fn($G_PROCESS_ID)" >
<FUNCTION_CALL name="abc_endjb_fn"  type="DI" >
<VARIABLE_REFERENCE name="$G_PROCESS_ID" />
</FUNCTION_CALL>
</DIExpression>
</DIFunctionCallStep>
</DIScript>
</DISteps>
<DICatch typeId="20" errorCode="210101" >
<DIUIOptions>
<DIAttribute name="ui_display_name" value="EXTN_CATCH"/>
</DIUIOptions>
<DISteps>
<DIScript>
<DIUIOptions>
<DIAttribute name="ui_display_name" value="EXTERNAL_FILE_JB_FAIL_SC"/>
<DIAttribute name="ui_script_text" value="ABC_FAILJB_FN($G_PROCESS_ID, 'Error: \[' || error_number() || '\] ' || error_message());&#xA;"/>
</DIUIOptions>
<DIFunctionCallStep typeId="23" >
<DIExpression isString="true" expr="abc_failjb_fn($G_PROCESS_ID, ((('Error: \\[' || error_number()) || '\\] ') || error_message()))" >
<FUNCTION_CALL name="abc_failjb_fn"  type="DI" >
<VARIABLE_REFERENCE name="$G_PROCESS_ID" />
<CONCAT>
<CONCAT>
<CONCAT>
<CONSTANT value="Error: \[" datatype="VARCHAR" size="9" />
<FUNCTION_CALL name="error_number"  type="DI" />
</CONCAT>
<CONSTANT value="\] " datatype="VARCHAR" size="3" />
</CONCAT>
<FUNCTION_CALL name="error_message"  type="DI" />
</CONCAT>
</FUNCTION_CALL>
</DIExpression>
</DIFunctionCallStep>
</DIScript>
</DISteps>
</DICatch>
</DITryStep>
</DISteps>
<DIAttributes>
<DIAttribute name="job_GV_$G_FLAG_DELETE" value="'DEL'"/>
<DIAttribute name="job_GV_$G_FLAG_NEW" value="'NEW'"/>
<DIAttribute name="job_GV_$G_FLAG_UPDATE" value="'UPD'"/>
<DIAttribute name="job_GV_$G_MODDATE_LOC" value="sysdate()"/>
<DIAttribute name="job_checkpoint_enabled" value="no"/>
<DIAttribute name="job_collect_statistics" value="no"/>
<DIAttribute name="job_collect_statistics_monitor" value="no"/>
<DIAttribute name="job_enable_assemblers" value="yes"/>
<DIAttribute name="job_enable_audit" value="yes"/>
<DIAttribute name="job_enable_dataquality" value="yes"/>
<DIAttribute name="job_export_repo" value="no"/>
<DIAttribute name="job_isrecoverable" value="no"/>
<DIAttribute name="job_mode" value="Multi-Process"/>
<DIAttribute name="job_monitor_sample_rate" value="1000"/>
<DIAttribute name="job_name" value="EXTERNAL_FILE_JB"/>
<DIAttribute name="job_print_version" value="no"/>
<DIAttribute name="job_testmode_enabled" value="no"/>
<DIAttribute name="job_trace_abapquery" value="no"/>
<DIAttribute name="job_trace_all" value="no"/>
<DIAttribute name="job_trace_ascomm" value="no"/>
<DIAttribute name="job_trace_assemblers" value="no"/>
<DIAttribute name="job_trace_audit" value="no"/>
<DIAttribute name="job_trace_dataflow" value="yes"/>
<DIAttribute name="job_trace_idoc_file" value="no"/>
<DIAttribute name="job_trace_memory_loader" value="no"/>
<DIAttribute name="job_trace_memory_reader" value="no"/>
<DIAttribute name="job_trace_optimized_dataflow" value="no"/>
<DIAttribute name="job_trace_parallel_execution" value="no"/>
<DIAttribute name="job_trace_rfc_function" value="no"/>
<DIAttribute name="job_trace_row" value="no"/>
<DIAttribute name="job_trace_script" value="no"/>
<DIAttribute name="job_trace_session" value="yes"/>
<DIAttribute name="job_trace_sql_only" value="no"/>
<DIAttribute name="job_trace_sqlfunctions" value="no"/>
<DIAttribute name="job_trace_sqlloaders" value="no"/>
<DIAttribute name="job_trace_sqlreaders" value="no"/>
<DIAttribute name="job_trace_sqltransforms" value="no"/>
<DIAttribute name="job_trace_stored_procedure" value="no"/>
<DIAttribute name="job_trace_table" value="no"/>
<DIAttribute name="job_trace_table_reader" value="no"/>
<DIAttribute name="job_trace_transform" value="no"/>
<DIAttribute name="job_trace_userfunction" value="no"/>
<DIAttribute name="job_trace_usertransform" value="no"/>
<DIAttribute name="job_trace_workflow" value="yes"/>
<DIAttribute name="job_type" value="batch"/>
<DIAttribute name="job_use_statistics" value="yes"/>
<DIAttribute name="locale_codepage" value="&lt;default&gt;"/>
<DIAttribute name="locale_language" value="&lt;default&gt;"/>
<DIAttribute name="locale_territory" value="&lt;default&gt;"/>
</DIAttributes>
</DIJob>
<DIWorkflow name="EXTN_CONT_WF" typeId="2" >
<DISteps>
<DICallStep typeId="0"  calledObjectType="Workflow" name="EXTN_SOURCE_EXTRACT_CONT_WF" >
</DICallStep>
<DICallStep typeId="0"  calledObjectType="Workflow" name="EXTN_CON_CONT_WF" >
</DICallStep>
<DICallStep typeId="0"  calledObjectType="Workflow" name="EXTN_XFR_DIM_CONT_WF" >
</DICallStep>
<DICallStep typeId="0"  calledObjectType="Workflow" name="EXTN_LOOKUP_CONT_WF" >
</DICallStep>
<DICallStep typeId="0"  calledObjectType="Workflow" name="EXTN_DW_CONT_WF" >
</DICallStep>
<DICallStep typeId="0"  calledObjectType="Workflow" name="EXTN_CSNP_CONT_WF" >
</DICallStep>
</DISteps>
<DIAttributes>
<DIAttribute name="run_once" value="no"/>
<DIAttribute name="unit_of_recovery" value="no"/>
</DIAttributes>
</DIWorkflow>
<DIWorkflow name="EXTN_SOURCE_EXTRACT_CONT_WF" typeId="2" >
<DIUIOptions>
<DIAnnotation name="ANNOTATION_0"><DIAttribute name="ObjectDesc" value="This workflow is a container for the entities concerned by the SOURCE EXTRACT ETL Step for the external files"/>
</DIAnnotation></DIUIOptions>
<DIProperties>
<DIAttribute name="GeneratorTemplate" value="ENTITY_LEVEL_FOR_PRODUCT_CONTAINER_WF (version 0.13.0-SNAPSHOT)"/>
<DIAttribute name="GeneratorVersion" value="v1.0"/>
<DIAttribute name="GenerationDate" value="Fri, 23 Jan 2009 10:49:48"/>
<DIAttribute name="Description" value="This workflow is a container for the entities concerned by the SOURCE EXTRACT ETL Step for the external files. It integrates the following entities:&#xD;&#xA;  - BUDGET (version 1.0)&#xD;&#xA;  - COSTCATEGORY (version 1.0)&#xD;&#xA;  - MEASURETYPE (version 1.0)&#xD;&#xA;  - STATUS (version 1.0)&#xD;&#xA;"/>
</DIProperties>
<DISteps>
<DICallStep typeId="0"  calledObjectType="Workflow" name="BUDGET_EXTERNAL_SOURCE_EXTRACT_FF_WF" >
</DICallStep>
<DICallStep typeId="0"  calledObjectType="Workflow" name="COSTCATEGORY_EXTERNAL_SOURCE_EXTRACT_FF_WF" >
</DICallStep>
<DICallStep typeId="0"  calledObjectType="Workflow" name="MEASURETYPE_EXTERNAL_SOURCE_EXTRACT_FF_WF" >
</DICallStep>
<DICallStep typeId="0"  calledObjectType="Workflow" name="STATUS_EXTERNAL_SOURCE_EXTRACT_FF_WF" >
</DICallStep>
</DISteps>
<DIAttributes>
<DIAttribute name="run_once" value="no"/>
<DIAttribute name="unit_of_recovery" value="no"/>
</DIAttributes>
</DIWorkflow>
<DIWorkflow name="BUDGET_EXTERNAL_SOURCE_EXTRACT_FF_WF" typeId="2" >
<DIUIOptions>
<DIAnnotation name="ANNOTATION_0"><DIAttribute name="ObjectDesc" value="This Workflow houses the extraction process into a flat file for the AM_COSTCENTER data."/>
</DIAnnotation><DIAttribute name="AutoLayout" value="yes"/>
</DIUIOptions>
<DIProperties>
<DIAttribute name="Description" value="This Workflow houses the extraction process into a flat file for the AMRIGHTSUSESCOUNT data.&#xA;&#xA;The workflow {Source Table}_FF_WF is the workflow responsible for extracting data from the source table {Source Table} and writing it to the target {Source Table}_FF.  The workflow will be composed of the following objects:&#xA;•&#x9;PM_{Source Table}_TRY – The beginning of the TRY/CATCH block in Data Integrator&#xA;•&#x9;PM_{Source Table}_START_SC – The script that calls the custom function that initiates the metadata tracking for the workflow.&#xA;•&#x9;{Source Table}_FF_DF – The dataflow that extracts the data from the source system.&#xA;•&#x9;{Source Table}_FF_END_SC – The script that calls the custom function that closes the metadata for the workflow.&#xA;•&#x9;{Source Table}_FF_CATCH – The end of the TRY/CATCH block.  It contains the script that calls the custom function which writes metadata if there is a failure."/>
</DIProperties>
<DIVariables>
<DIElement paramType="LOCAL" name="$L_Dynamic_File_Name" datatype="VARCHAR" size="100" >
</DIElement>
<DIElement paramType="LOCAL" name="$L_SOURCE_SYS" datatype="VARCHAR" size="30" >
</DIElement>
<DIElement paramType="LOCAL" name="$L_SOURCE_TABLE" datatype="VARCHAR" size="30" >
</DIElement>
<DIElement paramType="LOCAL" name="$L_Dynamic_File_Location" datatype="VARCHAR" size="100" >
</DIElement>
<DIElement paramType="LOCAL" name="$L_IDENTIFIER" datatype="VARCHAR" size="100" >
</DIElement>
<DIElement paramType="LOCAL" name="$L_EXTRACT_BEGIN_DATE" datatype="DATETIME" >
</DIElement>
<DIElement paramType="LOCAL" name="$L_EXTRACT_END_DATE" datatype="DATETIME" >
</DIElement>
</DIVariables>
<DISteps>
<DITryStep typeId="13" >
<DIUIOptions>
<DIAttribute name="AutoLayout" value="yes"/>
<DIAttribute name="ObjectDesc" value="the Try of the Try / Catch Block"/>
<DIAttribute name="ui_display_name" value="BUDGET_EXTERNAL_EXTRACT_FF_TRY"/>
</DIUIOptions>
<DISteps>
<DIScript>
<DIUIOptions>
<DIAttribute name="ObjectDesc" value="The workflow script object {Source Table}_FF_START_SC.  This script calls the custom function STARTWF_FN.  This script opens the metadata records that are part of this process.  The script will also be used to populate the local workflow variables.  The script body will contain:&#xA;&#xA;Script Body&#x9;&#xA;STARTWF_FN('{Source Sys}', '{Source Table}_FF');&#xA;$FLAT_FILE_NAME_LV = ‘{Source Table}_FF’||$ETL_BATCH_ID_GV||.txt&#xA;$AUDIT_FILE_NAME_LV = ‘{Source Table}_AUDIT’||$ETL_BATCH_ID_GV||.txt"/>
<DIAttribute name="ui_display_name" value="BUDGET_EXTERNAL_EXTRACT_FF_START_SC"/>
<DIAttribute name="ui_script_text" value="# ---------------------&#xA;#-- ABC ---&#xA;$L_IDENTIFIER = workflow_name();&#xA;ABC_STARTWF_FN($L_IDENTIFIER, $G_PROCESS_ID);&#xA;&#xA;#--- END ABC -----&#xA;#$L_Dynamic_File_Name ='AMVIEW_AM_BUDGET_' ||$G_Batch_ID||'_EXTRACT_FF.TXT';&#xA;&#xA;if( $G_TRACE_MODE = 1)&#xA;Begin&#xA;print('The File will be located in the '||$G_EXTN_FILELOCATION  ||' directory.' );&#xA;End&#xA;&#xA;&#xA;&#xA;&#xA;&#xA;&#xA;&#xA;&#xA;&#xA;&#xA;"/>
</DIUIOptions>
<DIAssignmentStep typeId="12" variable="$L_IDENTIFIER" >
<DIExpression isString="true" expr="workflow_name()" >
<FUNCTION_CALL name="workflow_name"  type="DI" />
</DIExpression>
</DIAssignmentStep>
<DIFunctionCallStep typeId="23" >
<DIExpression isString="true" expr="abc_startwf_fn($L_IDENTIFIER, $G_PROCESS_ID)" >
<FUNCTION_CALL name="abc_startwf_fn"  type="DI" >
<VARIABLE_REFERENCE name="$L_IDENTIFIER" />
<VARIABLE_REFERENCE name="$G_PROCESS_ID" />
</FUNCTION_CALL>
</DIExpression>
</DIFunctionCallStep>
<DIIfStep typeId="2" >
<DIExpression isString="true" expr="($G_TRACE_MODE = 1)" >
<LOGICAL_OP op="EQ">
<VARIABLE_REFERENCE name="$G_TRACE_MODE" />
<CONSTANT value="1" datatype="INT" />
</LOGICAL_OP>
</DIExpression>
<DIIf>
<DIFunctionCallStep typeId="23" >
<DIExpression isString="true" expr="print((('The File will be located in the ' || $G_EXTN_FILELOCATION) || ' directory.'))" >
<FUNCTION_CALL name="print"  type="DI" >
<CONCAT>
<CONCAT>
<CONSTANT value="The File will be located in the " datatype="VARCHAR" size="32" />
<VARIABLE_REFERENCE name="$G_EXTN_FILELOCATION" />
</CONCAT>
<CONSTANT value=" directory." datatype="VARCHAR" size="11" />
</CONCAT>
</FUNCTION_CALL>
</DIExpression>
</DIFunctionCallStep>
</DIIf>
<DIElse>
</DIElse>
</DIIfStep>
</DIScript>
<DICallStep typeId="1"  calledObjectType="Dataflow" name="BUDGET_EXTERNAL_SOURCE_EXTRACT_FF_DF" >
<DIUIOptions>
<DIAttribute name="ParmDefaulted_01" value="FALSE"/>
<DIAttribute name="ParmDefaulted_02" value="FALSE"/>
<DIAttribute name="ParmDefaulted_03" value="FALSE"/>
<DIAttribute name="ParmDefaulted_04" value="FALSE"/>
</DIUIOptions>
<DIParameterValues>
<DIExpression isString="true" expr="$L_Dynamic_File_Name" >
<VARIABLE_REFERENCE name="$L_Dynamic_File_Name" />
</DIExpression>
<DIExpression isString="true" expr="$L_Dynamic_File_Location" >
<VARIABLE_REFERENCE name="$L_Dynamic_File_Location" />
</DIExpression>
<DIExpression isString="true" expr="$L_EXTRACT_BEGIN_DATE" >
<VARIABLE_REFERENCE name="$L_EXTRACT_BEGIN_DATE" />
</DIExpression>
<DIExpression isString="true" expr="$L_EXTRACT_END_DATE" >
<VARIABLE_REFERENCE name="$L_EXTRACT_END_DATE" />
</DIExpression>
</DIParameterValues>
</DICallStep>
<DIScript>
<DIUIOptions>
<DIAttribute name="ObjectDesc" value="The workflow script object {Source Table}_FF_END_SC.  This script calls the custom function ENDWF_FN.  This script closes the metadata records that are part of this process.  The script body will contain:&#xA;&#xA;Script Body&#x9;&#xA;ENDWF_FN('{Source Sys}', '{Source Table}_FF')"/>
<DIAttribute name="ui_display_name" value="BUDGET_EXTERNAL_EXTRACT_FF_END_SC"/>
<DIAttribute name="ui_script_text" value="# this script has been generated from template SubExtWfExitScript &#xA;# Template version V1.0&#xA;# ---------------------&#xA;#--- ABC ---&#xA;ABC_ENDWF_FN($L_IDENTIFIER, $G_PROCESS_ID);&#xA;&#xA;#---- END ABC ----&#xA;if($G_TRACE_MODE = 1)&#xA;Begin&#xA;print(' ');&#xA;print(' ');&#xA;print('The Workfolw ' || workflow_name() || ' has completed running in Debug mode.');&#xA;print(' ');&#xA;print(' ');&#xA;END"/>
</DIUIOptions>
<DIFunctionCallStep typeId="23" >
<DIExpression isString="true" expr="abc_endwf_fn($L_IDENTIFIER, $G_PROCESS_ID)" >
<FUNCTION_CALL name="abc_endwf_fn"  type="DI" >
<VARIABLE_REFERENCE name="$L_IDENTIFIER" />
<VARIABLE_REFERENCE name="$G_PROCESS_ID" />
</FUNCTION_CALL>
</DIExpression>
</DIFunctionCallStep>
<DIIfStep typeId="2" >
<DIExpression isString="true" expr="($G_TRACE_MODE = 1)" >
<LOGICAL_OP op="EQ">
<VARIABLE_REFERENCE name="$G_TRACE_MODE" />
<CONSTANT value="1" datatype="INT" />
</LOGICAL_OP>
</DIExpression>
<DIIf>
<DIFunctionCallStep typeId="23" >
<DIExpression isString="true" expr="print(' ')" >
<FUNCTION_CALL name="print"  type="DI" >
<CONSTANT value=" " datatype="VARCHAR" size="1" />
</FUNCTION_CALL>
</DIExpression>
</DIFunctionCallStep>
<DIFunctionCallStep typeId="23" >
<DIExpression isString="true" expr="print(' ')" >
<FUNCTION_CALL name="print"  type="DI" >
<CONSTANT value=" " datatype="VARCHAR" size="1" />
</FUNCTION_CALL>
</DIExpression>
</DIFunctionCallStep>
<DIFunctionCallStep typeId="23" >
<DIExpression isString="true" expr="print((('The Workfolw ' || workflow_name()) || ' has completed running in Debug mode.'))" >
<FUNCTION_CALL name="print"  type="DI" >
<CONCAT>
<CONCAT>
<CONSTANT value="The Workfolw " datatype="VARCHAR" size="13" />
<FUNCTION_CALL name="workflow_name"  type="DI" />
</CONCAT>
<CONSTANT value=" has completed running in Debug mode." datatype="VARCHAR" size="37" />
</CONCAT>
</FUNCTION_CALL>
</DIExpression>
</DIFunctionCallStep>
<DIFunctionCallStep typeId="23" >
<DIExpression isString="true" expr="print(' ')" >
<FUNCTION_CALL name="print"  type="DI" >
<CONSTANT value=" " datatype="VARCHAR" size="1" />
</FUNCTION_CALL>
</DIExpression>
</DIFunctionCallStep>
<DIFunctionCallStep typeId="23" >
<DIExpression isString="true" expr="print(' ')" >
<FUNCTION_CALL name="print"  type="DI" >
<CONSTANT value=" " datatype="VARCHAR" size="1" />
</FUNCTION_CALL>
</DIExpression>
</DIFunctionCallStep>
</DIIf>
<DIElse>
</DIElse>
</DIIfStep>
</DIScript>
</DISteps>
<DICatch typeId="20" errorCode="210101" >
<DIUIOptions>
<DIAttribute name="AutoLayout" value="yes"/>
<DIAttribute name="ObjectDesc" value="The workflow catch object {Source Table}_FF_CATCH is the end of the TRY/CATCH block in BO DS.  This catch block will contain the script {Source Table}_FF_FAIL_SC.  This script will call the custom function that is used to write the metadata for failed jobs.  The script will contain the following call.&#xA;&#xA;Script Body&#x9;FAILWF_FN('{Source Sys}', '{Source Table}_FF')"/>
<DIAttribute name="ui_display_name" value="BUDGET_EXTERNAL_EXTRACT_FF_CATCH"/>
</DIUIOptions>
<DISteps>
<DIScript>
<DIUIOptions>
<DIAttribute name="ui_display_name" value="BUDGET_EXTERNAL_EXTRACT_FF_FAIL_SC"/>
<DIAttribute name="ui_script_text" value="#ABC - CALL FUNCTION TO TRACK END OF WORKFLOW&#xA;ABC_FAILWF_FN(workflow_name(), $G_PROCESS_ID, 'Error: \[' || error_number() || '\] ' || error_message());&#xA;&#xA;#----&#xA;if( $G_TRACE_MODE = 1)&#xA;Begin&#xA;print(' ');&#xA;print(' ');&#xA;print('Message from the BUDGET_EXTERNAL_EXTRACT_FF_CATCH Block Script:');&#xA;print('The Workflow ' || workflow_name() || ' has failed to run.');&#xA;print(' ');&#xA;print(' ');&#xA;End"/>
</DIUIOptions>
<DIFunctionCallStep typeId="23" >
<DIExpression isString="true" expr="abc_failwf_fn(workflow_name(), $G_PROCESS_ID, ((('Error: \\[' || error_number()) || '\\] ') || error_message()))" >
<FUNCTION_CALL name="abc_failwf_fn"  type="DI" >
<FUNCTION_CALL name="workflow_name"  type="DI" />
<VARIABLE_REFERENCE name="$G_PROCESS_ID" />
<CONCAT>
<CONCAT>
<CONCAT>
<CONSTANT value="Error: \[" datatype="VARCHAR" size="9" />
<FUNCTION_CALL name="error_number"  type="DI" />
</CONCAT>
<CONSTANT value="\] " datatype="VARCHAR" size="3" />
</CONCAT>
<FUNCTION_CALL name="error_message"  type="DI" />
</CONCAT>
</FUNCTION_CALL>
</DIExpression>
</DIFunctionCallStep>
<DIIfStep typeId="2" >
<DIExpression isString="true" expr="($G_TRACE_MODE = 1)" >
<LOGICAL_OP op="EQ">
<VARIABLE_REFERENCE name="$G_TRACE_MODE" />
<CONSTANT value="1" datatype="INT" />
</LOGICAL_OP>
</DIExpression>
<DIIf>
<DIFunctionCallStep typeId="23" >
<DIExpression isString="true" expr="print(' ')" >
<FUNCTION_CALL name="print"  type="DI" >
<CONSTANT value=" " datatype="VARCHAR" size="1" />
</FUNCTION_CALL>
</DIExpression>
</DIFunctionCallStep>
<DIFunctionCallStep typeId="23" >
<DIExpression isString="true" expr="print(' ')" >
<FUNCTION_CALL name="print"  type="DI" >
<CONSTANT value=" " datatype="VARCHAR" size="1" />
</FUNCTION_CALL>
</DIExpression>
</DIFunctionCallStep>
<DIFunctionCallStep typeId="23" >
<DIExpression isString="true" expr="print('Message from the BUDGET_EXTERNAL_EXTRACT_FF_CATCH Block Script:')" >
<FUNCTION_CALL name="print"  type="DI" >
<CONSTANT value="Message from the BUDGET_EXTERNAL_EXTRACT_FF_CATCH Block Script:" datatype="VARCHAR" size="63" />
</FUNCTION_CALL>
</DIExpression>
</DIFunctionCallStep>
<DIFunctionCallStep typeId="23" >
<DIExpression isString="true" expr="print((('The Workflow ' || workflow_name()) || ' has failed to run.'))" >
<FUNCTION_CALL name="print"  type="DI" >
<CONCAT>
<CONCAT>
<CONSTANT value="The Workflow " datatype="VARCHAR" size="13" />
<FUNCTION_CALL name="workflow_name"  type="DI" />
</CONCAT>
<CONSTANT value=" has failed to run." datatype="VARCHAR" size="19" />
</CONCAT>
</FUNCTION_CALL>
</DIExpression>
</DIFunctionCallStep>
<DIFunctionCallStep typeId="23" >
<DIExpression isString="true" expr="print(' ')" >
<FUNCTION_CALL name="print"  type="DI" >
<CONSTANT value=" " datatype="VARCHAR" size="1" />
</FUNCTION_CALL>
</DIExpression>
</DIFunctionCallStep>
<DIFunctionCallStep typeId="23" >
<DIExpression isString="true" expr="print(' ')" >
<FUNCTION_CALL name="print"  type="DI" >
<CONSTANT value=" " datatype="VARCHAR" size="1" />
</FUNCTION_CALL>
</DIExpression>
</DIFunctionCallStep>
</DIIf>
<DIElse>
</DIElse>
</DIIfStep>
</DIScript>
</DISteps>
</DICatch>
</DITryStep>
</DISteps>
<DIAttributes>
<DIAttribute name="run_once" value="no"/>
<DIAttribute name="unit_of_recovery" value="no"/>
</DIAttributes>
</DIWorkflow>
<DIDataflow name="BUDGET_EXTERNAL_SOURCE_EXTRACT_FF_DF" typeId="1" >
<DIUIOptions>
<DIAttribute name="AutoLayout" value="yes"/>
</DIUIOptions>
<DIProperties>
<DIAttribute name="Description" value="The dataflow for extraction sources data from the defined source table.  Data is pulled from the source table based on the source tables LASTMODDATE value.  All data that was inserted or updated after a specific date will be loaded into the target file.  &#xA;The file that is created by the process will be a delimited file.  The delimiter for this file is |^|.  The dataflow not only loads the target file it also writes an audit file.  The audit file contains the source count and the target count based on the specific where clause.  This file will be used by an ABC audit process outside of the ETL process."/>
</DIProperties>
<DIParameters>
<DIElement paramType="IN" name="$P_Dynamic_File_Name" datatype="VARCHAR" size="100" >
</DIElement>
<DIElement paramType="IN" name="$P_Dynamic_File_Location" datatype="VARCHAR" size="100" >
</DIElement>
<DIElement paramType="IN" name="$P_EXTRACT_BEGIN_DATE" datatype="DATETIME" >
</DIElement>
<DIElement paramType="IN" name="$P_EXTRACT_END_DATE" datatype="DATETIME" >
</DIElement>
</DIParameters>
<DITransforms>
<DIQuery typeId="122"  >
<DIUIOptions>
<DIAttribute name="ObjectDesc" value="This Query wil limit the amount of data that is being queried in order to limit the size of the flat file target based on the platform it is loaded onto.  The Date range will be controlled by the 'C' in the ABC process."/>
<DIAttribute name="ui_acta_from_schema_0" value="BUDGET_EXTN_SOURCE_XLS"/>
<DIAttribute name="ui_display_name" value="QRY_EXTRACT"/>
</DIUIOptions>
<DISchema name="QRY_EXTRACT" >
<DIElement name="SOURCE_NAME" datatype="VARCHAR" size="100" key="true" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="BUDGET_EXTN_SOURCE_XLS.SRC_APP"/>
</DIAttributes>
</DIElement>
<DIElement name="SRC_PRIMARY_KEY" datatype="VARCHAR" size="100" key="true" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="BUDGET_EXTN_SOURCE_XLS.SRC_PRIMARY_KEY"/>
</DIAttributes>
</DIElement>
<DIElement name="BUDGET_NAME_TARGET" datatype="VARCHAR" size="60" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="BUDGET_EXTN_SOURCE_XLS.TGT_BUDGET_NAME"/>
</DIAttributes>
</DIElement>
<DIElement name="BUDGET_NAME_ALT" datatype="VARCHAR" size="60" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="BUDGET_EXTN_SOURCE_XLS.BUDGET_NAME_ALT"/>
</DIAttributes>
</DIElement>
<DIElement name="SRC_LASTMODDATE" datatype="DATETIME" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="$G_MODDATE_LOC "/>
</DIAttributes>
</DIElement>
<DIElement name="MD_BUSINESS_KEY" datatype="VARCHAR" size="100" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="BUDGET_EXTN_SOURCE_XLS.TGT_BUDGET_NAME"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_FLAG" datatype="VARCHAR" size="10" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="$G_FLAG_NEW"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_BATCH_ID" datatype="DECIMAL" precision="19" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="$G_BATCH_ID"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_PROCESS_ID" datatype="DECIMAL" precision="19" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="$G_PROCESS_ID"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_CP_ID" datatype="INT" key="true" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="BUDGET_EXTN_SOURCE_XLS.CONTENT_PACK_ID"/>
</DIAttributes>
</DIElement>
</DISchema>
<DISelect isDistinct="true">
<DIProjection>
<DIExpression isString="true" expr="BUDGET_EXTN_SOURCE_XLS.SRC_APP" >
<COLUMN_REFERENCE  qualifier1="BUDGET_EXTN_SOURCE_XLS" column="SRC_APP" />
</DIExpression>
<DIExpression isString="true" expr="BUDGET_EXTN_SOURCE_XLS.SRC_PRIMARY_KEY" >
<COLUMN_REFERENCE  qualifier1="BUDGET_EXTN_SOURCE_XLS" column="SRC_PRIMARY_KEY" />
</DIExpression>
<DIExpression isString="true" expr="BUDGET_EXTN_SOURCE_XLS.TGT_BUDGET_NAME" >
<COLUMN_REFERENCE  qualifier1="BUDGET_EXTN_SOURCE_XLS" column="TGT_BUDGET_NAME" />
</DIExpression>
<DIExpression isString="true" expr="BUDGET_EXTN_SOURCE_XLS.BUDGET_NAME_ALT" >
<COLUMN_REFERENCE  qualifier1="BUDGET_EXTN_SOURCE_XLS" column="BUDGET_NAME_ALT" />
</DIExpression>
<DIExpression isString="true" expr="$G_MODDATE_LOC" >
<VARIABLE_REFERENCE name="$G_MODDATE_LOC" />
</DIExpression>
<DIExpression isString="true" expr="BUDGET_EXTN_SOURCE_XLS.TGT_BUDGET_NAME" >
<COLUMN_REFERENCE  qualifier1="BUDGET_EXTN_SOURCE_XLS" column="TGT_BUDGET_NAME" />
</DIExpression>
<DIExpression isString="true" expr="$G_FLAG_NEW" >
<VARIABLE_REFERENCE name="$G_FLAG_NEW" />
</DIExpression>
<DIExpression isString="true" expr="$G_BATCH_ID" >
<VARIABLE_REFERENCE name="$G_BATCH_ID" />
</DIExpression>
<DIExpression isString="true" expr="$G_PROCESS_ID" >
<VARIABLE_REFERENCE name="$G_PROCESS_ID" />
</DIExpression>
<DIExpression isString="true" expr="BUDGET_EXTN_SOURCE_XLS.CONTENT_PACK_ID" >
<COLUMN_REFERENCE  qualifier1="BUDGET_EXTN_SOURCE_XLS" column="CONTENT_PACK_ID" />
</DIExpression>
</DIProjection>
<DIFrom>
<DITableSpec name="BUDGET_EXTN_SOURCE_XLS" />
</DIFrom>
</DISelect>
<DIAttributes>
<DIAttribute name="distinct_run_as_separate_process" value="no"/>
<DIAttribute name="group_by_run_as_separate_process" value="no"/>
<DIAttribute name="join_run_as_separate_process" value="no"/>
<DIAttribute name="order_by_run_as_separate_process" value="no"/>
<DIAttribute name="run_as_separate_process" value="no"/>
</DIAttributes>
</DIQuery>

<DIExcelSource typeID="130" datastoreName="BUDGET_EXTN_SOURCE_XLS" name="BUDGET_EXTN_SOURCE_XLS" >
<DIOutputView name="BUDGET_EXTN_SOURCE_XLS"  />
<DIAttributes>
<DIAttribute name="MSExcel_capture_data_conversion" value="no"/>
<DIAttribute name="cache" value="no"/>
<DIAttribute name="connection_port" value="no"/>
<DIAttribute name="reader_filename_col" value="DI_FILENAME"/>
<DIAttribute name="reader_filename_col_size" value="100"/>
<DIAttribute name="reader_filename_only" value="yes"/>
<DIAttribute name="reader_include_filename" value="no"/>
<DIAttribute name="table_weight" value="0"/>
</DIAttributes>
</DIExcelSource>

<DIDatabaseTableTarget typeID="11" bulkLoader="false" datastoreName="SRCSTAGING_DS" ownerName="SRCSTAGING_ALIAS" tableName="BUDGET_EXTT" >
<DIInputView name="Map_Operation"  />
<DIAttributes>
<DIAttribute name="LDRLiveLoad" value="no"/>
<DIAttribute name="Table_Type" value="TABLE"/>
<DIAttribute name="connection_port" value="no"/>
<DIAttribute name="ldr_configuration_enabled" value="yes"/>
<DIAttribute name="ldr_configurations" hasNestedXMLTree ="true">
<LDRConfigurations>
<LDRConfiguration database_type="Microsoft_SQL_Server" database_version="Microsoft SQL Server 2005">
<auto_correct_using_merge>yes</auto_correct_using_merge>
<bulk_ldr_all_rows/>
<bulk_ldr_max_errors/>
<bulk_ldr_rows_per_commit/>
<enable_partitioning>no</enable_partitioning>
<ignore_column_case>yes</ignore_column_case>
<ignore_columns_null>no</ignore_columns_null>
<ignore_columns_value/>
<loader_auto_correct>yes</loader_auto_correct>
<loader_bulk_load>0</loader_bulk_load>
<loader_compare_column>compare_by_name</loader_compare_column>
<loader_delete_map/>
<loader_drop_and_create_table>no</loader_drop_and_create_table>
<loader_insert_map/>
<loader_load_choice>append</loader_load_choice>
<loader_num_parallel_loaders>1</loader_num_parallel_loaders>
<loader_overflow_file>overflow_file</loader_overflow_file>
<loader_post_load1/>
<loader_pre_load1/>
<loader_quote_names>0</loader_quote_names>
<loader_transactional>no</loader_transactional>
<loader_transactional_order>0</loader_transactional_order>
<loader_update_key_columns>no</loader_update_key_columns>
<loader_update_map/>
<loader_use_user_defined_keys>yes</loader_use_user_defined_keys>
<loader_xact_size>1000</loader_xact_size>
<mssql_bulk_ldr_mode>truncate</mssql_bulk_ldr_mode>
<mssql_bulk_ldr_packet_size>4</mssql_bulk_ldr_packet_size>
<overflow_file_format>write_data</overflow_file_format>
<overriding_substitution_parameter_for_tablename/>
<use_overflow_file>no</use_overflow_file>
<use_unicode_varchar>no</use_unicode_varchar>
<sql_text/>
</LDRConfiguration>
</LDRConfigurations>
</DIAttribute>
<DIAttribute name="loader_template_table" value="no"/>
<DIAttribute name="name" value="SRCSTAGING_DS"/>
<DIAttribute name="use_unicode_varchar" value="no"/>
</DIAttributes>
</DIDatabaseTableTarget>

<DITransformCall typeId="111" name="Table_Comparison" >
<DIInputView name="QRY_FILTER_DUPLICATE"  />
<DISchema name="BUDGET_EXTT" >
</DISchema>
<DIAttributes>
<DIAttribute name="cache_comparison_table" value="no"/>
<DIAttribute name="compare_column1" value="BUDGET_NAME_TARGET"/>
<DIAttribute name="compare_column2" value="BUDGET_NAME_ALT"/>
<DIAttribute name="database_datastore" value="SRCSTAGING_DS"/>
<DIAttribute name="detect_all_dup_deletes" value="no"/>
<DIAttribute name="detect_delete" value="no"/>
<DIAttribute name="primary_key_column1" value="SOURCE_NAME"/>
<DIAttribute name="primary_key_column2" value="SRC_PRIMARY_KEY"/>
<DIAttribute name="primary_key_column3" value="MD_CP_ID"/>
<DIAttribute name="run_as_separate_process" value="no"/>
<DIAttribute name="source_is_sorted" value="yes"/>
<DIAttribute name="table_name" value="BUDGET_EXTT"/>
<DIAttribute name="table_owner" value="SRCSTAGING_ALIAS"/>
<DIAttribute name="update_cache" value="no"/>
</DIAttributes>
</DITransformCall>
<DITransformCall typeId="111" name="Map_Operation" >
<DIInputView name="BUDGET_EXTT"  />
<DISchema name="Map_Operation" >
</DISchema>
<DIAttributes>
<DIAttribute name="delete" value="discard"/>
<DIAttribute name="insert" value="insert"/>
<DIAttribute name="normal" value="discard"/>
<DIAttribute name="update" value="update"/>
</DIAttributes>
</DITransformCall>
<DIQuery typeId="122"  >
<DIUIOptions>
<DIAttribute name="ui_acta_from_schema_0" value="QRY_EXTRACT"/>
<DIAttribute name="ui_display_name" value="QRY_SORT"/>
</DIUIOptions>
<DISchema name="QRY_SORT" >
<DIElement name="SOURCE_NAME" datatype="VARCHAR" size="100" key="true" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="QRY_EXTRACT.SOURCE_NAME"/>
</DIAttributes>
</DIElement>
<DIElement name="SRC_PRIMARY_KEY" datatype="VARCHAR" size="100" key="true" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="QRY_EXTRACT.SRC_PRIMARY_KEY"/>
</DIAttributes>
</DIElement>
<DIElement name="BUDGET_NAME_TARGET" datatype="VARCHAR" size="60" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="QRY_EXTRACT.BUDGET_NAME_TARGET"/>
</DIAttributes>
</DIElement>
<DIElement name="BUDGET_NAME_ALT" datatype="VARCHAR" size="60" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="QRY_EXTRACT.BUDGET_NAME_ALT"/>
</DIAttributes>
</DIElement>
<DIElement name="SRC_LASTMODDATE" datatype="DATETIME" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="QRY_EXTRACT.SRC_LASTMODDATE"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_BUSINESS_KEY" datatype="VARCHAR" size="100" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="QRY_EXTRACT.MD_BUSINESS_KEY"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_FLAG" datatype="VARCHAR" size="10" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="QRY_EXTRACT.MD_FLAG"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_BATCH_ID" datatype="DECIMAL" precision="19" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="QRY_EXTRACT.MD_BATCH_ID"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_PROCESS_ID" datatype="DECIMAL" precision="19" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="QRY_EXTRACT.MD_PROCESS_ID"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_CP_ID" datatype="INT" key="true" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="QRY_EXTRACT.MD_CP_ID"/>
</DIAttributes>
</DIElement>
</DISchema>
<DISelect>
<DIProjection>
<DIExpression isString="true" expr="QRY_EXTRACT.SOURCE_NAME" >
<COLUMN_REFERENCE  qualifier1="QRY_EXTRACT" column="SOURCE_NAME" />
</DIExpression>
<DIExpression isString="true" expr="QRY_EXTRACT.SRC_PRIMARY_KEY" >
<COLUMN_REFERENCE  qualifier1="QRY_EXTRACT" column="SRC_PRIMARY_KEY" />
</DIExpression>
<DIExpression isString="true" expr="QRY_EXTRACT.BUDGET_NAME_TARGET" >
<COLUMN_REFERENCE  qualifier1="QRY_EXTRACT" column="BUDGET_NAME_TARGET" />
</DIExpression>
<DIExpression isString="true" expr="QRY_EXTRACT.BUDGET_NAME_ALT" >
<COLUMN_REFERENCE  qualifier1="QRY_EXTRACT" column="BUDGET_NAME_ALT" />
</DIExpression>
<DIExpression isString="true" expr="QRY_EXTRACT.SRC_LASTMODDATE" >
<COLUMN_REFERENCE  qualifier1="QRY_EXTRACT" column="SRC_LASTMODDATE" />
</DIExpression>
<DIExpression isString="true" expr="QRY_EXTRACT.MD_BUSINESS_KEY" >
<COLUMN_REFERENCE  qualifier1="QRY_EXTRACT" column="MD_BUSINESS_KEY" />
</DIExpression>
<DIExpression isString="true" expr="QRY_EXTRACT.MD_FLAG" >
<COLUMN_REFERENCE  qualifier1="QRY_EXTRACT" column="MD_FLAG" />
</DIExpression>
<DIExpression isString="true" expr="QRY_EXTRACT.MD_BATCH_ID" >
<COLUMN_REFERENCE  qualifier1="QRY_EXTRACT" column="MD_BATCH_ID" />
</DIExpression>
<DIExpression isString="true" expr="QRY_EXTRACT.MD_PROCESS_ID" >
<COLUMN_REFERENCE  qualifier1="QRY_EXTRACT" column="MD_PROCESS_ID" />
</DIExpression>
<DIExpression isString="true" expr="QRY_EXTRACT.MD_CP_ID" >
<COLUMN_REFERENCE  qualifier1="QRY_EXTRACT" column="MD_CP_ID" />
</DIExpression>
</DIProjection>
<DIFrom>
<DITableSpec name="QRY_EXTRACT" />
</DIFrom>
<DIOrderBys>
<DIOrderBy direction="DESC">
<DIExpression isString="true" expr="QRY_EXTRACT.SOURCE_NAME" >
<COLUMN_REFERENCE  qualifier1="QRY_EXTRACT" column="SOURCE_NAME" />
</DIExpression>
</DIOrderBy>
<DIOrderBy direction="DESC">
<DIExpression isString="true" expr="QRY_EXTRACT.SRC_PRIMARY_KEY" >
<COLUMN_REFERENCE  qualifier1="QRY_EXTRACT" column="SRC_PRIMARY_KEY" />
</DIExpression>
</DIOrderBy>
</DIOrderBys>
</DISelect>
<DIAttributes>
<DIAttribute name="distinct_run_as_separate_process" value="no"/>
<DIAttribute name="group_by_run_as_separate_process" value="no"/>
<DIAttribute name="join_run_as_separate_process" value="no"/>
<DIAttribute name="order_by_run_as_separate_process" value="no"/>
<DIAttribute name="run_as_separate_process" value="no"/>
</DIAttributes>
</DIQuery>

<DIQuery typeId="122"  >
<DIUIOptions>
<DIAttribute name="ui_acta_from_schema_0" value="QRY_SORT"/>
<DIAttribute name="ui_display_name" value="QRY_MARK_LATEST"/>
</DIUIOptions>
<DISchema name="QRY_MARK_LATEST" >
<DIElement name="SOURCE_NAME" datatype="VARCHAR" size="100" key="true" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="QRY_SORT.SOURCE_NAME"/>
</DIAttributes>
</DIElement>
<DIElement name="SRC_PRIMARY_KEY" datatype="VARCHAR" size="100" key="true" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="QRY_SORT.SRC_PRIMARY_KEY"/>
</DIAttributes>
</DIElement>
<DIElement name="BUDGET_NAME_TARGET" datatype="VARCHAR" size="60" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="QRY_SORT.BUDGET_NAME_TARGET"/>
</DIAttributes>
</DIElement>
<DIElement name="BUDGET_NAME_ALT" datatype="VARCHAR" size="60" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="QRY_SORT.BUDGET_NAME_ALT"/>
</DIAttributes>
</DIElement>
<DIElement name="SRC_LASTMODDATE" datatype="DATETIME" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="QRY_SORT.SRC_LASTMODDATE"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_BUSINESS_KEY" datatype="VARCHAR" size="100" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="QRY_SORT.MD_BUSINESS_KEY"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_FLAG" datatype="VARCHAR" size="10" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="QRY_SORT.MD_FLAG"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_BATCH_ID" datatype="DECIMAL" precision="19" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="QRY_SORT.MD_BATCH_ID"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_PROCESS_ID" datatype="DECIMAL" precision="19" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="QRY_SORT.MD_PROCESS_ID"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_CP_ID" datatype="INT" key="true" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="QRY_SORT.MD_CP_ID"/>
</DIAttributes>
</DIElement>
<DIElement name="MARK_GROUP" datatype="INT" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="is_group_changed(QRY_SORT.SOURCE_NAME, QRY_SORT.SRC_PRIMARY_KEY, QRY_SORT.MD_CP_ID )"/>
</DIAttributes>
</DIElement>
</DISchema>
<DISelect>
<DIProjection>
<DIExpression isString="true" expr="QRY_SORT.SOURCE_NAME" >
<COLUMN_REFERENCE  qualifier1="QRY_SORT" column="SOURCE_NAME" />
</DIExpression>
<DIExpression isString="true" expr="QRY_SORT.SRC_PRIMARY_KEY" >
<COLUMN_REFERENCE  qualifier1="QRY_SORT" column="SRC_PRIMARY_KEY" />
</DIExpression>
<DIExpression isString="true" expr="QRY_SORT.BUDGET_NAME_TARGET" >
<COLUMN_REFERENCE  qualifier1="QRY_SORT" column="BUDGET_NAME_TARGET" />
</DIExpression>
<DIExpression isString="true" expr="QRY_SORT.BUDGET_NAME_ALT" >
<COLUMN_REFERENCE  qualifier1="QRY_SORT" column="BUDGET_NAME_ALT" />
</DIExpression>
<DIExpression isString="true" expr="QRY_SORT.SRC_LASTMODDATE" >
<COLUMN_REFERENCE  qualifier1="QRY_SORT" column="SRC_LASTMODDATE" />
</DIExpression>
<DIExpression isString="true" expr="QRY_SORT.MD_BUSINESS_KEY" >
<COLUMN_REFERENCE  qualifier1="QRY_SORT" column="MD_BUSINESS_KEY" />
</DIExpression>
<DIExpression isString="true" expr="QRY_SORT.MD_FLAG" >
<COLUMN_REFERENCE  qualifier1="QRY_SORT" column="MD_FLAG" />
</DIExpression>
<DIExpression isString="true" expr="QRY_SORT.MD_BATCH_ID" >
<COLUMN_REFERENCE  qualifier1="QRY_SORT" column="MD_BATCH_ID" />
</DIExpression>
<DIExpression isString="true" expr="QRY_SORT.MD_PROCESS_ID" >
<COLUMN_REFERENCE  qualifier1="QRY_SORT" column="MD_PROCESS_ID" />
</DIExpression>
<DIExpression isString="true" expr="QRY_SORT.MD_CP_ID" >
<COLUMN_REFERENCE  qualifier1="QRY_SORT" column="MD_CP_ID" />
</DIExpression>
<DIExpression isString="true" expr="is_group_changed(QRY_SORT.SOURCE_NAME, QRY_SORT.SRC_PRIMARY_KEY, QRY_SORT.MD_CP_ID)" >
<FUNCTION_CALL name="is_group_changed"  type="DI" >
<COLUMN_REFERENCE  qualifier1="QRY_SORT" column="SOURCE_NAME" />
<COLUMN_REFERENCE  qualifier1="QRY_SORT" column="SRC_PRIMARY_KEY" />
<COLUMN_REFERENCE  qualifier1="QRY_SORT" column="MD_CP_ID" />
</FUNCTION_CALL>
</DIExpression>
</DIProjection>
<DIFrom>
<DITableSpec name="QRY_SORT" />
</DIFrom>
</DISelect>
<DIAttributes>
<DIAttribute name="distinct_run_as_separate_process" value="no"/>
<DIAttribute name="group_by_run_as_separate_process" value="no"/>
<DIAttribute name="join_run_as_separate_process" value="no"/>
<DIAttribute name="order_by_run_as_separate_process" value="no"/>
<DIAttribute name="run_as_separate_process" value="no"/>
</DIAttributes>
</DIQuery>

<DIQuery typeId="122"  >
<DIUIOptions>
<DIAttribute name="ui_acta_from_schema_0" value="QRY_MARK_LATEST"/>
<DIAttribute name="ui_display_name" value="QRY_FILTER_DUPLICATE"/>
<DIAttribute name="ui_where_text" value="QRY_MARK_LATEST.MARK_GROUP=1"/>
</DIUIOptions>
<DISchema name="QRY_FILTER_DUPLICATE" >
<DIElement name="MD_BUSINESS_KEY" datatype="VARCHAR" size="100" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="QRY_MARK_LATEST.MD_BUSINESS_KEY"/>
</DIAttributes>
</DIElement>
<DIElement name="SOURCE_NAME" datatype="VARCHAR" size="100" key="true" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="QRY_MARK_LATEST.SOURCE_NAME"/>
</DIAttributes>
</DIElement>
<DIElement name="SRC_PRIMARY_KEY" datatype="VARCHAR" size="100" key="true" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="QRY_MARK_LATEST.SRC_PRIMARY_KEY"/>
</DIAttributes>
</DIElement>
<DIElement name="BUDGET_NAME_TARGET" datatype="VARCHAR" size="60" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="QRY_MARK_LATEST.BUDGET_NAME_TARGET"/>
</DIAttributes>
</DIElement>
<DIElement name="BUDGET_NAME_ALT" datatype="VARCHAR" size="60" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="QRY_MARK_LATEST.BUDGET_NAME_ALT"/>
</DIAttributes>
</DIElement>
<DIElement name="SRC_LASTMODDATE" datatype="DATETIME" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="QRY_MARK_LATEST.SRC_LASTMODDATE"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_FLAG" datatype="VARCHAR" size="10" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="QRY_MARK_LATEST.MD_FLAG"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_BATCH_ID" datatype="DECIMAL" precision="19" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="QRY_MARK_LATEST.MD_BATCH_ID"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_PROCESS_ID" datatype="DECIMAL" precision="19" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="QRY_MARK_LATEST.MD_PROCESS_ID"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_CP_ID" datatype="INT" key="true" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="QRY_MARK_LATEST.MD_CP_ID"/>
</DIAttributes>
</DIElement>
</DISchema>
<DISelect>
<DIProjection>
<DIExpression isString="true" expr="QRY_MARK_LATEST.MD_BUSINESS_KEY" >
<COLUMN_REFERENCE  qualifier1="QRY_MARK_LATEST" column="MD_BUSINESS_KEY" />
</DIExpression>
<DIExpression isString="true" expr="QRY_MARK_LATEST.SOURCE_NAME" >
<COLUMN_REFERENCE  qualifier1="QRY_MARK_LATEST" column="SOURCE_NAME" />
</DIExpression>
<DIExpression isString="true" expr="QRY_MARK_LATEST.SRC_PRIMARY_KEY" >
<COLUMN_REFERENCE  qualifier1="QRY_MARK_LATEST" column="SRC_PRIMARY_KEY" />
</DIExpression>
<DIExpression isString="true" expr="QRY_MARK_LATEST.BUDGET_NAME_TARGET" >
<COLUMN_REFERENCE  qualifier1="QRY_MARK_LATEST" column="BUDGET_NAME_TARGET" />
</DIExpression>
<DIExpression isString="true" expr="QRY_MARK_LATEST.BUDGET_NAME_ALT" >
<COLUMN_REFERENCE  qualifier1="QRY_MARK_LATEST" column="BUDGET_NAME_ALT" />
</DIExpression>
<DIExpression isString="true" expr="QRY_MARK_LATEST.SRC_LASTMODDATE" >
<COLUMN_REFERENCE  qualifier1="QRY_MARK_LATEST" column="SRC_LASTMODDATE" />
</DIExpression>
<DIExpression isString="true" expr="QRY_MARK_LATEST.MD_FLAG" >
<COLUMN_REFERENCE  qualifier1="QRY_MARK_LATEST" column="MD_FLAG" />
</DIExpression>
<DIExpression isString="true" expr="QRY_MARK_LATEST.MD_BATCH_ID" >
<COLUMN_REFERENCE  qualifier1="QRY_MARK_LATEST" column="MD_BATCH_ID" />
</DIExpression>
<DIExpression isString="true" expr="QRY_MARK_LATEST.MD_PROCESS_ID" >
<COLUMN_REFERENCE  qualifier1="QRY_MARK_LATEST" column="MD_PROCESS_ID" />
</DIExpression>
<DIExpression isString="true" expr="QRY_MARK_LATEST.MD_CP_ID" >
<COLUMN_REFERENCE  qualifier1="QRY_MARK_LATEST" column="MD_CP_ID" />
</DIExpression>
</DIProjection>
<DIFrom>
<DITableSpec name="QRY_MARK_LATEST" />
</DIFrom>
<DIWhere>
<DIExpression isString="true" expr="(QRY_MARK_LATEST.MARK_GROUP = 1)" >
<LOGICAL_OP op="EQ">
<COLUMN_REFERENCE  qualifier1="QRY_MARK_LATEST" column="MARK_GROUP" />
<CONSTANT value="1" datatype="INT" />
</LOGICAL_OP>
</DIExpression>
</DIWhere>
<DIOrderBys>
<DIOrderBy direction="ASC">
<DIExpression isString="true" expr="QRY_MARK_LATEST.SOURCE_NAME" >
<COLUMN_REFERENCE  qualifier1="QRY_MARK_LATEST" column="SOURCE_NAME" />
</DIExpression>
</DIOrderBy>
<DIOrderBy direction="ASC">
<DIExpression isString="true" expr="QRY_MARK_LATEST.SRC_PRIMARY_KEY" >
<COLUMN_REFERENCE  qualifier1="QRY_MARK_LATEST" column="SRC_PRIMARY_KEY" />
</DIExpression>
</DIOrderBy>
<DIOrderBy direction="ASC">
<DIExpression isString="true" expr="QRY_MARK_LATEST.MD_CP_ID" >
<COLUMN_REFERENCE  qualifier1="QRY_MARK_LATEST" column="MD_CP_ID" />
</DIExpression>
</DIOrderBy>
</DIOrderBys>
</DISelect>
<DIAttributes>
<DIAttribute name="distinct_run_as_separate_process" value="no"/>
<DIAttribute name="group_by_run_as_separate_process" value="no"/>
<DIAttribute name="join_run_as_separate_process" value="no"/>
<DIAttribute name="order_by_run_as_separate_process" value="no"/>
<DIAttribute name="run_as_separate_process" value="no"/>
</DIAttributes>
</DIQuery>

</DITransforms>
<DIAttributes>
<DIAttribute name="Audit" hasNestedXMLTree ="true">
<Audit>
<AuditObjects>
</AuditObjects>
<AuditRules>
</AuditRules>
<Notifications>
<RaiseException Enabled="true">
</RaiseException>
<Mail Enabled="false"/>
<Script Enabled="false"/>
</Notifications>
</Audit>
</DIAttribute>
<DIAttribute name="Cache_type" value="pageable_cache"/>
<DIAttribute name="Parallelism_degree" value="0"/>
<DIAttribute name="allows_both_input_and_output" value="yes"/>
<DIAttribute name="run_once" value="no"/>
<DIAttribute name="use_dataflow_links" value="no"/>
<DIAttribute name="use_datastore_links" value="yes"/>
<DIAttribute name="validation_xform_exists" value="no"/>
<DIAttribute name="validation_xform_stats" value="no"/>
</DIAttributes>
</DIDataflow>
<DIWorkflow name="COSTCATEGORY_EXTERNAL_SOURCE_EXTRACT_FF_WF" typeId="2" >
<DIUIOptions>
<DIAnnotation name="ANNOTATION_0"><DIAttribute name="ObjectDesc" value="This Workflow houses the extraction process into a flat file for the AM_COSTCENTER data."/>
</DIAnnotation><DIAttribute name="AutoLayout" value="yes"/>
</DIUIOptions>
<DIProperties>
<DIAttribute name="Description" value="This Workflow houses the extraction process into a flat file for the AMRIGHTSUSESCOUNT data.&#xA;&#xA;The workflow {Source Table}_FF_WF is the workflow responsible for extracting data from the source table {Source Table} and writing it to the target {Source Table}_FF.  The workflow will be composed of the following objects:&#xA;•&#x9;PM_{Source Table}_TRY – The beginning of the TRY/CATCH block in Data Integrator&#xA;•&#x9;PM_{Source Table}_START_SC – The script that calls the custom function that initiates the metadata tracking for the workflow.&#xA;•&#x9;{Source Table}_FF_DF – The dataflow that extracts the data from the source system.&#xA;•&#x9;{Source Table}_FF_END_SC – The script that calls the custom function that closes the metadata for the workflow.&#xA;•&#x9;{Source Table}_FF_CATCH – The end of the TRY/CATCH block.  It contains the script that calls the custom function which writes metadata if there is a failure."/>
</DIProperties>
<DIVariables>
<DIElement paramType="LOCAL" name="$L_Dynamic_File_Name" datatype="VARCHAR" size="100" >
</DIElement>
<DIElement paramType="LOCAL" name="$L_SOURCE_SYS" datatype="VARCHAR" size="30" >
</DIElement>
<DIElement paramType="LOCAL" name="$L_SOURCE_TABLE" datatype="VARCHAR" size="30" >
</DIElement>
<DIElement paramType="LOCAL" name="$L_Dynamic_File_Location" datatype="VARCHAR" size="100" >
</DIElement>
<DIElement paramType="LOCAL" name="$L_IDENTIFIER" datatype="VARCHAR" size="100" >
</DIElement>
<DIElement paramType="LOCAL" name="$L_EXTRACT_BEGIN_DATE" datatype="DATETIME" >
</DIElement>
<DIElement paramType="LOCAL" name="$L_EXTRACT_END_DATE" datatype="DATETIME" >
</DIElement>
</DIVariables>
<DISteps>
<DITryStep typeId="13" >
<DIUIOptions>
<DIAttribute name="AutoLayout" value="yes"/>
<DIAttribute name="ObjectDesc" value="the Try of the Try / Catch Block"/>
<DIAttribute name="ui_display_name" value="AM_AMCOSTCATEGORY_EXTRACT_FF_TRY"/>
</DIUIOptions>
<DISteps>
<DIScript>
<DIUIOptions>
<DIAttribute name="ObjectDesc" value="The workflow script object {Source Table}_FF_START_SC.  This script calls the custom function STARTWF_FN.  This script opens the metadata records that are part of this process.  The script will also be used to populate the local workflow variables.  The script body will contain:&#xA;&#xA;Script Body&#x9;&#xA;STARTWF_FN('{Source Sys}', '{Source Table}_FF');&#xA;$FLAT_FILE_NAME_LV = ‘{Source Table}_FF’||$ETL_BATCH_ID_GV||.txt&#xA;$AUDIT_FILE_NAME_LV = ‘{Source Table}_AUDIT’||$ETL_BATCH_ID_GV||.txt"/>
<DIAttribute name="ui_display_name" value="AM_AMCOSTCATEGORY_EXTRACT_FF_START_SC"/>
<DIAttribute name="ui_script_text" value="# ---------------------&#xD;&#xA;#-- ABC ---&#xD;&#xA;$L_IDENTIFIER = workflow_name();&#xD;&#xA;ABC_STARTWF_FN($L_IDENTIFIER, $G_PROCESS_ID);&#xD;&#xA;&#xD;&#xA;#ABC_GET_EXTRACT_START_DATE_FN( $L_EXTRACT_BEGIN_DATE, $L_IDENTIFIER, $G_PROCESS_ID );&#xD;&#xA;#$L_EXTRACT_END_DATE = sql('AMVIEW_DS','SELECT MAX(SRC_LASTMODDATE) AS END_DATE FROM AM_AMCOSTCATEGORY');&#xD;&#xA;#ABC_SET_EXTRACT_END_DATE_FN( $L_EXTRACT_END_DATE, $L_IDENTIFIER, $G_PROCESS_ID ); &#xD;&#xA;&#xD;&#xA;#print('$L_EXTRACT_END_DATE ' || $L_EXTRACT_END_DATE);&#xD;&#xA;#print('$L_EXTRACT_BEGIN_DATE ' || $L_EXTRACT_BEGIN_DATE);&#xD;&#xA;&#xD;&#xA;#$L_EXTRACT_BEGIN_DATE = '1900.12.31 12:00:01';&#xD;&#xA;#$L_EXTRACT_END_DATE = '2020.12.31 11:59:59';&#xD;&#xA;&#xD;&#xA;#$L_EXTRACT_BEGIN_DATE = '1900.12.31 12:00:01';&#xD;&#xA;#$L_EXTRACT_END_DATE = '2020.12.31 11:59:59';&#xD;&#xA;&#xD;&#xA;#--- END ABC -----&#xD;&#xA;&#xD;&#xA;$L_Dynamic_File_Name ='AMVIEW_AM_AMCOSTCATEGORY_' ||$G_Batch_ID||'_EXTRACT_FF.TXT';&#xD;&#xA;&#xD;&#xA;if( $G_TRACE_MODE = 1)&#xD;&#xA;Begin&#xD;&#xA;print('The File will be located in the '||$G_EXTN_FILELOCATION  ||' directory.' );&#xD;&#xA;End&#xD;&#xA;&#xD;&#xA;&#xD;&#xA;&#xD;&#xA;&#xD;&#xA;&#xD;&#xA;&#xD;&#xA;&#xD;&#xA;&#xD;&#xA;&#xD;&#xA;&#xD;&#xA;"/>
</DIUIOptions>
<DIAssignmentStep typeId="12" variable="$L_IDENTIFIER" >
<DIExpression isString="true" expr="workflow_name()" >
<FUNCTION_CALL name="workflow_name"  type="DI" />
</DIExpression>
</DIAssignmentStep>
<DIFunctionCallStep typeId="23" >
<DIExpression isString="true" expr="abc_startwf_fn($L_IDENTIFIER, $G_PROCESS_ID)" >
<FUNCTION_CALL name="abc_startwf_fn"  type="DI" >
<VARIABLE_REFERENCE name="$L_IDENTIFIER" />
<VARIABLE_REFERENCE name="$G_PROCESS_ID" />
</FUNCTION_CALL>
</DIExpression>
</DIFunctionCallStep>
<DIAssignmentStep typeId="12" variable="$L_Dynamic_File_Name" >
<DIExpression isString="true" expr="(('AMVIEW_AM_AMCOSTCATEGORY_' || $G_Batch_ID) || '_EXTRACT_FF.TXT')" >
<CONCAT>
<CONCAT>
<CONSTANT value="AMVIEW_AM_AMCOSTCATEGORY_" datatype="VARCHAR" size="25" />
<VARIABLE_REFERENCE name="$G_Batch_ID" />
</CONCAT>
<CONSTANT value="_EXTRACT_FF.TXT" datatype="VARCHAR" size="15" />
</CONCAT>
</DIExpression>
</DIAssignmentStep>
<DIIfStep typeId="2" >
<DIExpression isString="true" expr="($G_TRACE_MODE = 1)" >
<LOGICAL_OP op="EQ">
<VARIABLE_REFERENCE name="$G_TRACE_MODE" />
<CONSTANT value="1" datatype="INT" />
</LOGICAL_OP>
</DIExpression>
<DIIf>
<DIFunctionCallStep typeId="23" >
<DIExpression isString="true" expr="print((('The File will be located in the ' || $G_EXTN_FILELOCATION) || ' directory.'))" >
<FUNCTION_CALL name="print"  type="DI" >
<CONCAT>
<CONCAT>
<CONSTANT value="The File will be located in the " datatype="VARCHAR" size="32" />
<VARIABLE_REFERENCE name="$G_EXTN_FILELOCATION" />
</CONCAT>
<CONSTANT value=" directory." datatype="VARCHAR" size="11" />
</CONCAT>
</FUNCTION_CALL>
</DIExpression>
</DIFunctionCallStep>
</DIIf>
<DIElse>
</DIElse>
</DIIfStep>
</DIScript>
<DICallStep typeId="1"  calledObjectType="Dataflow" name="AM_AMCOSTCATEGORY_EXTERNAL_SOURCE_EXTRACT_FF_DF" >
<DIUIOptions>
<DIAttribute name="ParmDefaulted_01" value="FALSE"/>
<DIAttribute name="ParmDefaulted_02" value="FALSE"/>
<DIAttribute name="ParmDefaulted_03" value="FALSE"/>
<DIAttribute name="ParmDefaulted_04" value="FALSE"/>
</DIUIOptions>
<DIParameterValues>
<DIExpression isString="true" expr="$L_Dynamic_File_Name" >
<VARIABLE_REFERENCE name="$L_Dynamic_File_Name" />
</DIExpression>
<DIExpression isString="true" expr="$L_Dynamic_File_Location" >
<VARIABLE_REFERENCE name="$L_Dynamic_File_Location" />
</DIExpression>
<DIExpression isString="true" expr="$L_EXTRACT_BEGIN_DATE" >
<VARIABLE_REFERENCE name="$L_EXTRACT_BEGIN_DATE" />
</DIExpression>
<DIExpression isString="true" expr="$L_EXTRACT_END_DATE" >
<VARIABLE_REFERENCE name="$L_EXTRACT_END_DATE" />
</DIExpression>
</DIParameterValues>
</DICallStep>
<DIScript>
<DIUIOptions>
<DIAttribute name="ObjectDesc" value="The workflow script object {Source Table}_FF_END_SC.  This script calls the custom function ENDWF_FN.  This script closes the metadata records that are part of this process.  The script body will contain:&#xA;&#xA;Script Body&#x9;&#xA;ENDWF_FN('{Source Sys}', '{Source Table}_FF')"/>
<DIAttribute name="ui_display_name" value="AM_AMCOSTCATEGORY_EXTRACT_FF_END_SC"/>
<DIAttribute name="ui_script_text" value="# this script has been generated from template SubExtWfExitScript &#xD;&#xA;# Template version V1.0&#xD;&#xA;# ---------------------&#xD;&#xA;#--- ABC ---&#xD;&#xA;ABC_ENDWF_FN($L_IDENTIFIER, $G_PROCESS_ID);&#xD;&#xA;#---- END ABC ----&#xD;&#xA;&#xD;&#xA;if($G_TRACE_MODE = 1)&#xD;&#xA;Begin&#xD;&#xA;print(' ');&#xD;&#xA;print(' ');&#xD;&#xA;print('The Workfolw ' || workflow_name() || ' has completed running in Debug mode.');&#xD;&#xA;print(' ');&#xD;&#xA;print(' ');&#xD;&#xA;END"/>
</DIUIOptions>
<DIFunctionCallStep typeId="23" >
<DIExpression isString="true" expr="abc_endwf_fn($L_IDENTIFIER, $G_PROCESS_ID)" >
<FUNCTION_CALL name="abc_endwf_fn"  type="DI" >
<VARIABLE_REFERENCE name="$L_IDENTIFIER" />
<VARIABLE_REFERENCE name="$G_PROCESS_ID" />
</FUNCTION_CALL>
</DIExpression>
</DIFunctionCallStep>
<DIIfStep typeId="2" >
<DIExpression isString="true" expr="($G_TRACE_MODE = 1)" >
<LOGICAL_OP op="EQ">
<VARIABLE_REFERENCE name="$G_TRACE_MODE" />
<CONSTANT value="1" datatype="INT" />
</LOGICAL_OP>
</DIExpression>
<DIIf>
<DIFunctionCallStep typeId="23" >
<DIExpression isString="true" expr="print(' ')" >
<FUNCTION_CALL name="print"  type="DI" >
<CONSTANT value=" " datatype="VARCHAR" size="1" />
</FUNCTION_CALL>
</DIExpression>
</DIFunctionCallStep>
<DIFunctionCallStep typeId="23" >
<DIExpression isString="true" expr="print(' ')" >
<FUNCTION_CALL name="print"  type="DI" >
<CONSTANT value=" " datatype="VARCHAR" size="1" />
</FUNCTION_CALL>
</DIExpression>
</DIFunctionCallStep>
<DIFunctionCallStep typeId="23" >
<DIExpression isString="true" expr="print((('The Workfolw ' || workflow_name()) || ' has completed running in Debug mode.'))" >
<FUNCTION_CALL name="print"  type="DI" >
<CONCAT>
<CONCAT>
<CONSTANT value="The Workfolw " datatype="VARCHAR" size="13" />
<FUNCTION_CALL name="workflow_name"  type="DI" />
</CONCAT>
<CONSTANT value=" has completed running in Debug mode." datatype="VARCHAR" size="37" />
</CONCAT>
</FUNCTION_CALL>
</DIExpression>
</DIFunctionCallStep>
<DIFunctionCallStep typeId="23" >
<DIExpression isString="true" expr="print(' ')" >
<FUNCTION_CALL name="print"  type="DI" >
<CONSTANT value=" " datatype="VARCHAR" size="1" />
</FUNCTION_CALL>
</DIExpression>
</DIFunctionCallStep>
<DIFunctionCallStep typeId="23" >
<DIExpression isString="true" expr="print(' ')" >
<FUNCTION_CALL name="print"  type="DI" >
<CONSTANT value=" " datatype="VARCHAR" size="1" />
</FUNCTION_CALL>
</DIExpression>
</DIFunctionCallStep>
</DIIf>
<DIElse>
</DIElse>
</DIIfStep>
</DIScript>
</DISteps>
<DICatch typeId="20" errorCode="210101" >
<DIUIOptions>
<DIAttribute name="AutoLayout" value="yes"/>
<DIAttribute name="ObjectDesc" value="The workflow catch object {Source Table}_FF_CATCH is the end of the TRY/CATCH block in BO DS.  This catch block will contain the script {Source Table}_FF_FAIL_SC.  This script will call the custom function that is used to write the metadata for failed jobs.  The script will contain the following call.&#xA;&#xA;Script Body&#x9;FAILWF_FN('{Source Sys}', '{Source Table}_FF')"/>
<DIAttribute name="ui_display_name" value="AM_AMCOSTCATEGORY_EXTRACT_FF_CATCH"/>
</DIUIOptions>
<DISteps>
<DIScript>
<DIUIOptions>
<DIAttribute name="ui_display_name" value="AM_COSTCENTER_EXTRACT_FF_FAIL_SC"/>
<DIAttribute name="ui_script_text" value="#ABC - CALL FUNCTION TO TRACK END OF WORKFLOW&#xA;ABC_FAILWF_FN(workflow_name(), $G_PROCESS_ID, 'Error: \[' || error_number() || '\] ' || error_message());&#xA;&#xA;#----&#xA;if( $G_TRACE_MODE = 1)&#xA;Begin&#xA;print(' ');&#xA;print(' ');&#xA;print('Message from the AMCOSTCENTER_FF_CATCH Block Script:');&#xA;print('The Workflow ' || workflow_name() || ' has failed to run.');&#xA;print(' ');&#xA;print(' ');&#xA;End"/>
</DIUIOptions>
<DIFunctionCallStep typeId="23" >
<DIExpression isString="true" expr="abc_failwf_fn(workflow_name(), $G_PROCESS_ID, ((('Error: \\[' || error_number()) || '\\] ') || error_message()))" >
<FUNCTION_CALL name="abc_failwf_fn"  type="DI" >
<FUNCTION_CALL name="workflow_name"  type="DI" />
<VARIABLE_REFERENCE name="$G_PROCESS_ID" />
<CONCAT>
<CONCAT>
<CONCAT>
<CONSTANT value="Error: \[" datatype="VARCHAR" size="9" />
<FUNCTION_CALL name="error_number"  type="DI" />
</CONCAT>
<CONSTANT value="\] " datatype="VARCHAR" size="3" />
</CONCAT>
<FUNCTION_CALL name="error_message"  type="DI" />
</CONCAT>
</FUNCTION_CALL>
</DIExpression>
</DIFunctionCallStep>
<DIIfStep typeId="2" >
<DIExpression isString="true" expr="($G_TRACE_MODE = 1)" >
<LOGICAL_OP op="EQ">
<VARIABLE_REFERENCE name="$G_TRACE_MODE" />
<CONSTANT value="1" datatype="INT" />
</LOGICAL_OP>
</DIExpression>
<DIIf>
<DIFunctionCallStep typeId="23" >
<DIExpression isString="true" expr="print(' ')" >
<FUNCTION_CALL name="print"  type="DI" >
<CONSTANT value=" " datatype="VARCHAR" size="1" />
</FUNCTION_CALL>
</DIExpression>
</DIFunctionCallStep>
<DIFunctionCallStep typeId="23" >
<DIExpression isString="true" expr="print(' ')" >
<FUNCTION_CALL name="print"  type="DI" >
<CONSTANT value=" " datatype="VARCHAR" size="1" />
</FUNCTION_CALL>
</DIExpression>
</DIFunctionCallStep>
<DIFunctionCallStep typeId="23" >
<DIExpression isString="true" expr="print('Message from the AMCOSTCENTER_FF_CATCH Block Script:')" >
<FUNCTION_CALL name="print"  type="DI" >
<CONSTANT value="Message from the AMCOSTCENTER_FF_CATCH Block Script:" datatype="VARCHAR" size="52" />
</FUNCTION_CALL>
</DIExpression>
</DIFunctionCallStep>
<DIFunctionCallStep typeId="23" >
<DIExpression isString="true" expr="print((('The Workflow ' || workflow_name()) || ' has failed to run.'))" >
<FUNCTION_CALL name="print"  type="DI" >
<CONCAT>
<CONCAT>
<CONSTANT value="The Workflow " datatype="VARCHAR" size="13" />
<FUNCTION_CALL name="workflow_name"  type="DI" />
</CONCAT>
<CONSTANT value=" has failed to run." datatype="VARCHAR" size="19" />
</CONCAT>
</FUNCTION_CALL>
</DIExpression>
</DIFunctionCallStep>
<DIFunctionCallStep typeId="23" >
<DIExpression isString="true" expr="print(' ')" >
<FUNCTION_CALL name="print"  type="DI" >
<CONSTANT value=" " datatype="VARCHAR" size="1" />
</FUNCTION_CALL>
</DIExpression>
</DIFunctionCallStep>
<DIFunctionCallStep typeId="23" >
<DIExpression isString="true" expr="print(' ')" >
<FUNCTION_CALL name="print"  type="DI" >
<CONSTANT value=" " datatype="VARCHAR" size="1" />
</FUNCTION_CALL>
</DIExpression>
</DIFunctionCallStep>
</DIIf>
<DIElse>
</DIElse>
</DIIfStep>
</DIScript>
</DISteps>
</DICatch>
</DITryStep>
</DISteps>
<DIAttributes>
<DIAttribute name="run_once" value="no"/>
<DIAttribute name="unit_of_recovery" value="no"/>
</DIAttributes>
</DIWorkflow>
<DIDataflow name="AM_AMCOSTCATEGORY_EXTERNAL_SOURCE_EXTRACT_FF_DF" typeId="1" >
<DIUIOptions>
<DIAttribute name="AutoLayout" value="yes"/>
</DIUIOptions>
<DIProperties>
<DIAttribute name="Description" value="The dataflow for extraction sources data from the defined source table.  Data is pulled from the source table based on the source tables LASTMODDATE value.  All data that was inserted or updated after a specific date will be loaded into the target file.  &#xA;The file that is created by the process will be a delimited file.  The delimiter for this file is |^|.  The dataflow not only loads the target file it also writes an audit file.  The audit file contains the source count and the target count based on the specific where clause.  This file will be used by an ABC audit process outside of the ETL process."/>
</DIProperties>
<DIParameters>
<DIElement paramType="IN" name="$P_Dynamic_File_Name" datatype="VARCHAR" size="100" >
</DIElement>
<DIElement paramType="IN" name="$P_Dynamic_File_Location" datatype="VARCHAR" size="100" >
</DIElement>
<DIElement paramType="IN" name="$P_EXTRACT_BEGIN_DATE" datatype="DATETIME" >
</DIElement>
<DIElement paramType="IN" name="$P_EXTRACT_END_DATE" datatype="DATETIME" >
</DIElement>
</DIParameters>
<DITransforms>
<DIQuery typeId="122"  >
<DIUIOptions>
<DIAttribute name="ObjectDesc" value="This Query wil limit the amount of data that is being queried in order to limit the size of the flat file target based on the platform it is loaded onto.  The Date range will be controlled by the 'C' in the ABC process."/>
<DIAttribute name="ui_acta_from_schema_0" value="AM_CostCategory_EXTERNAL"/>
<DIAttribute name="ui_display_name" value="QRY_EXTRACT"/>
<DIAttribute name="ui_where_text" value="AM_CostCategory_EXTERNAL.SRC_PRIMARY_KEY&lt;&gt;'DUMMY'"/>
</DIUIOptions>
<DISchema name="QRY_EXTRACT" >
<DIElement name="MD_BUSINESS_KEY" datatype="VARCHAR" size="100" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="decode ((AM_CostCategory_EXTERNAL.SRC_APP = 'VCENTER'), AM_CostCategory_EXTERNAL.SRC_APP || '|' || AM_CostCategory_EXTERNAL.DETAILED_CATEGORY,&#xD;&#xA;(AM_CostCategory_EXTERNAL.SRC_APP = 'AWS'), AM_CostCategory_EXTERNAL.SRC_APP || '|' || AM_CostCategory_EXTERNAL.DETAILED_CATEGORY,&#xD;&#xA;AM_CostCategory_EXTERNAL.TGT_COSTCATEGORY_NAME)&#xA;"/>
</DIAttributes>
</DIElement>
<DIElement name="SOURCE_NAME" datatype="VARCHAR" size="100" key="true" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="AM_CostCategory_EXTERNAL.SRC_APP&#xA; &#xA;"/>
</DIAttributes>
</DIElement>
<DIElement name="SRC_PRIMARY_KEY" datatype="VARCHAR" size="100" key="true" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="UPPER(AM_CostCategory_EXTERNAL.SRC_PRIMARY_KEY)&#xA; &#xA;"/>
</DIAttributes>
</DIElement>
<DIElement name="COSTCATEGORY_NAME_TARGET" datatype="VARCHAR" size="255" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="AM_CostCategory_EXTERNAL.TGT_COSTCATEGORY_NAME&#xA; &#xA;"/>
</DIAttributes>
</DIElement>
<DIElement name="COSTCATEGORY_NAME_ALT" datatype="VARCHAR" size="60" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="AM_CostCategory_EXTERNAL.COSTCATEGORY_NAME_ALT&#xA; &#xA;"/>
</DIAttributes>
</DIElement>
<DIElement name="ACCOUNTING_CODE" datatype="VARCHAR" size="60" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="AM_CostCategory_EXTERNAL.ACCOUNTING_CODE&#xA; &#xA;"/>
</DIAttributes>
</DIElement>
<DIElement name="SRC_LASTMODDATE" datatype="DATETIME" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="sysdate()&#xA; &#xA;"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_FLAG" datatype="VARCHAR" size="60" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="'N'&#xA; &#xA;"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_BATCH_ID" datatype="VARCHAR" size="60" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="$G_BATCH_ID&#xA; &#xA;"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_PROCESS_ID" datatype="VARCHAR" size="60" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="$G_PROCESS_ID&#xA; &#xA;"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_CP_ID" datatype="INT" key="true" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="AM_CostCategory_EXTERNAL.CONTENT_PACK_ID"/>
</DIAttributes>
</DIElement>
<DIElement name="SUB_CATEGORY" datatype="VARCHAR" size="60" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="AM_CostCategory_EXTERNAL.SUB_CATEGORY"/>
</DIAttributes>
</DIElement>
<DIElement name="DETAILED_CATEGORY" datatype="VARCHAR" size="60" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="AM_CostCategory_EXTERNAL.DETAILED_CATEGORY"/>
</DIAttributes>
</DIElement>
</DISchema>
<DISelect isDistinct="true">
<DIProjection>
<DIExpression isString="true" expr="decode((AM_CostCategory_EXTERNAL.SRC_APP = 'VCENTER'), ((AM_CostCategory_EXTERNAL.SRC_APP || '|') || AM_CostCategory_EXTERNAL.DETAILED_CATEGORY), (AM_CostCategory_EXTERNAL.SRC_APP = 'AWS'), ((AM_CostCategory_EXTERNAL.SRC_APP || '|') || AM_CostCategory_EXTERNAL.DETAILED_CATEGORY), AM_CostCategory_EXTERNAL.TGT_COSTCATEGORY_NAME)" >
<FUNCTION_CALL name="decode"  type="DI" >
<LOGICAL_OP op="EQ">
<COLUMN_REFERENCE  qualifier1="AM_CostCategory_EXTERNAL" column="SRC_APP" />
<CONSTANT value="VCENTER" datatype="VARCHAR" size="7" />
</LOGICAL_OP>
<CONCAT>
<CONCAT>
<COLUMN_REFERENCE  qualifier1="AM_CostCategory_EXTERNAL" column="SRC_APP" />
<CONSTANT value="|" datatype="VARCHAR" size="1" />
</CONCAT>
<COLUMN_REFERENCE  qualifier1="AM_CostCategory_EXTERNAL" column="DETAILED_CATEGORY" />
</CONCAT>
<LOGICAL_OP op="EQ">
<COLUMN_REFERENCE  qualifier1="AM_CostCategory_EXTERNAL" column="SRC_APP" />
<CONSTANT value="AWS" datatype="VARCHAR" size="3" />
</LOGICAL_OP>
<CONCAT>
<CONCAT>
<COLUMN_REFERENCE  qualifier1="AM_CostCategory_EXTERNAL" column="SRC_APP" />
<CONSTANT value="|" datatype="VARCHAR" size="1" />
</CONCAT>
<COLUMN_REFERENCE  qualifier1="AM_CostCategory_EXTERNAL" column="DETAILED_CATEGORY" />
</CONCAT>
<COLUMN_REFERENCE  qualifier1="AM_CostCategory_EXTERNAL" column="TGT_COSTCATEGORY_NAME" />
</FUNCTION_CALL>
</DIExpression>
<DIExpression isString="true" expr="AM_CostCategory_EXTERNAL.SRC_APP" >
<COLUMN_REFERENCE  qualifier1="AM_CostCategory_EXTERNAL" column="SRC_APP" />
</DIExpression>
<DIExpression isString="true" expr="upper(AM_CostCategory_EXTERNAL.SRC_PRIMARY_KEY)" >
<FUNCTION_CALL name="upper"  type="DI" >
<COLUMN_REFERENCE  qualifier1="AM_CostCategory_EXTERNAL" column="SRC_PRIMARY_KEY" />
</FUNCTION_CALL>
</DIExpression>
<DIExpression isString="true" expr="AM_CostCategory_EXTERNAL.TGT_COSTCATEGORY_NAME" >
<COLUMN_REFERENCE  qualifier1="AM_CostCategory_EXTERNAL" column="TGT_COSTCATEGORY_NAME" />
</DIExpression>
<DIExpression isString="true" expr="AM_CostCategory_EXTERNAL.COSTCATEGORY_NAME_ALT" >
<COLUMN_REFERENCE  qualifier1="AM_CostCategory_EXTERNAL" column="COSTCATEGORY_NAME_ALT" />
</DIExpression>
<DIExpression isString="true" expr="AM_CostCategory_EXTERNAL.ACCOUNTING_CODE" >
<COLUMN_REFERENCE  qualifier1="AM_CostCategory_EXTERNAL" column="ACCOUNTING_CODE" />
</DIExpression>
<DIExpression isString="true" expr="sysdate()" >
<FUNCTION_CALL name="sysdate"  type="DI" />
</DIExpression>
<DIExpression isString="true" expr="'N'" >
<CONSTANT value="N" datatype="VARCHAR" size="1" />
</DIExpression>
<DIExpression isString="true" expr="$G_BATCH_ID" >
<VARIABLE_REFERENCE name="$G_BATCH_ID" />
</DIExpression>
<DIExpression isString="true" expr="$G_PROCESS_ID" >
<VARIABLE_REFERENCE name="$G_PROCESS_ID" />
</DIExpression>
<DIExpression isString="true" expr="AM_CostCategory_EXTERNAL.CONTENT_PACK_ID" >
<COLUMN_REFERENCE  qualifier1="AM_CostCategory_EXTERNAL" column="CONTENT_PACK_ID" />
</DIExpression>
<DIExpression isString="true" expr="AM_CostCategory_EXTERNAL.SUB_CATEGORY" >
<COLUMN_REFERENCE  qualifier1="AM_CostCategory_EXTERNAL" column="SUB_CATEGORY" />
</DIExpression>
<DIExpression isString="true" expr="AM_CostCategory_EXTERNAL.DETAILED_CATEGORY" >
<COLUMN_REFERENCE  qualifier1="AM_CostCategory_EXTERNAL" column="DETAILED_CATEGORY" />
</DIExpression>
</DIProjection>
<DIFrom>
<DITableSpec name="AM_CostCategory_EXTERNAL" />
</DIFrom>
<DIWhere>
<DIExpression isString="true" expr="(AM_CostCategory_EXTERNAL.SRC_PRIMARY_KEY != 'DUMMY')" >
<LOGICAL_OP op="NE">
<COLUMN_REFERENCE  qualifier1="AM_CostCategory_EXTERNAL" column="SRC_PRIMARY_KEY" />
<CONSTANT value="DUMMY" datatype="VARCHAR" size="5" />
</LOGICAL_OP>
</DIExpression>
</DIWhere>
</DISelect>
<DIAttributes>
<DIAttribute name="distinct_run_as_separate_process" value="no"/>
<DIAttribute name="group_by_run_as_separate_process" value="no"/>
<DIAttribute name="join_run_as_separate_process" value="no"/>
<DIAttribute name="order_by_run_as_separate_process" value="no"/>
<DIAttribute name="run_as_separate_process" value="no"/>
</DIAttributes>
</DIQuery>

<DIExcelSource typeID="130" datastoreName="AM_CostCategory_EXTERNAL" name="AM_CostCategory_EXTERNAL" >
<DIOutputView name="AM_CostCategory_EXTERNAL"  />
<DIAttributes>
<DIAttribute name="MSExcel_capture_data_conversion" value="no"/>
<DIAttribute name="MSExcel_data_access" value="MSExcel_none"/>
<DIAttribute name="cache" value="no"/>
<DIAttribute name="connection_port" value="no"/>
<DIAttribute name="reader_filename_col" value="DI_FILENAME"/>
<DIAttribute name="reader_filename_col_size" value="100"/>
<DIAttribute name="reader_filename_only" value="yes"/>
<DIAttribute name="reader_include_filename" value="no"/>
<DIAttribute name="table_weight" value="0"/>
</DIAttributes>
</DIExcelSource>

<DIDatabaseTableTarget typeID="11" bulkLoader="false" datastoreName="SRCSTAGING_DS" ownerName="SRCSTAGING_ALIAS" tableName="COSTCATEGORY_EXTT" >
<DIInputView name="Map_Operation"  />
<DIAttributes>
<DIAttribute name="LDRLiveLoad" value="no"/>
<DIAttribute name="Table_Type" value="TABLE"/>
<DIAttribute name="connection_port" value="no"/>
<DIAttribute name="ldr_configuration_enabled" value="yes"/>
<DIAttribute name="ldr_configurations" hasNestedXMLTree ="true">
<LDRConfigurations>
<LDRConfiguration database_type="Microsoft_SQL_Server" database_version="Microsoft SQL Server 2005">
<auto_correct_using_merge>yes</auto_correct_using_merge>
<bulk_ldr_all_rows/>
<bulk_ldr_max_errors/>
<bulk_ldr_rows_per_commit/>
<enable_partitioning>no</enable_partitioning>
<ignore_column_case>yes</ignore_column_case>
<ignore_columns_null>no</ignore_columns_null>
<ignore_columns_value/>
<loader_auto_correct>yes</loader_auto_correct>
<loader_bulk_load>0</loader_bulk_load>
<loader_compare_column>compare_by_name</loader_compare_column>
<loader_delete_map/>
<loader_drop_and_create_table>no</loader_drop_and_create_table>
<loader_insert_map/>
<loader_load_choice>append</loader_load_choice>
<loader_num_parallel_loaders>1</loader_num_parallel_loaders>
<loader_overflow_file>overflow_file</loader_overflow_file>
<loader_post_load1/>
<loader_pre_load1/>
<loader_quote_names>0</loader_quote_names>
<loader_transactional>no</loader_transactional>
<loader_transactional_order>0</loader_transactional_order>
<loader_update_key_columns>no</loader_update_key_columns>
<loader_update_map/>
<loader_use_user_defined_keys>no</loader_use_user_defined_keys>
<loader_xact_size>1000</loader_xact_size>
<mssql_bulk_ldr_mode>append</mssql_bulk_ldr_mode>
<mssql_bulk_ldr_packet_size>4</mssql_bulk_ldr_packet_size>
<overflow_file_format>write_data</overflow_file_format>
<overriding_substitution_parameter_for_tablename/>
<use_overflow_file>no</use_overflow_file>
<use_unicode_varchar>no</use_unicode_varchar>
<sql_text/>
</LDRConfiguration>
</LDRConfigurations>
</DIAttribute>
<DIAttribute name="loader_template_table" value="no"/>
<DIAttribute name="name" value="SRCSTAGING_DS"/>
<DIAttribute name="use_unicode_varchar" value="no"/>
</DIAttributes>
</DIDatabaseTableTarget>

<DITransformCall typeId="111" name="Table_Comparison" >
<DIInputView name="QRY_FILTER_DUPLICATE"  />
<DISchema name="COSTCATEGORY_EXTT" >
</DISchema>
<DIAttributes>
<DIAttribute name="cache_comparison_table" value="no"/>
<DIAttribute name="compare_column1" value="COSTCATEGORY_NAME_TARGET"/>
<DIAttribute name="compare_column2" value="COSTCATEGORY_NAME_ALT"/>
<DIAttribute name="compare_column3" value="ACCOUNTING_CODE"/>
<DIAttribute name="compare_column4" value="SUB_CATEGORY"/>
<DIAttribute name="compare_column5" value="DETAILED_CATEGORY"/>
<DIAttribute name="database_datastore" value="SRCSTAGING_DS"/>
<DIAttribute name="detect_all_dup_deletes" value="no"/>
<DIAttribute name="detect_delete" value="no"/>
<DIAttribute name="primary_key_column1" value="SOURCE_NAME"/>
<DIAttribute name="primary_key_column2" value="SRC_PRIMARY_KEY"/>
<DIAttribute name="run_as_separate_process" value="no"/>
<DIAttribute name="source_is_sorted" value="yes"/>
<DIAttribute name="table_name" value="COSTCATEGORY_EXTT"/>
<DIAttribute name="table_owner" value="SRCSTAGING_ALIAS"/>
<DIAttribute name="update_cache" value="no"/>
</DIAttributes>
</DITransformCall>
<DITransformCall typeId="111" name="Map_Operation" >
<DIInputView name="COSTCATEGORY_EXTT"  />
<DISchema name="Map_Operation" >
</DISchema>
<DIAttributes>
<DIAttribute name="delete" value="discard"/>
<DIAttribute name="insert" value="insert"/>
<DIAttribute name="normal" value="discard"/>
<DIAttribute name="update" value="update"/>
</DIAttributes>
</DITransformCall>
<DIQuery typeId="122"  >
<DIUIOptions>
<DIAttribute name="ui_acta_from_schema_0" value="QRY_EXTRACT"/>
<DIAttribute name="ui_display_name" value="Query_SORT"/>
</DIUIOptions>
<DISchema name="Query_SORT" >
<DIElement name="MD_BUSINESS_KEY" datatype="VARCHAR" size="100" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="QRY_EXTRACT.MD_BUSINESS_KEY"/>
</DIAttributes>
</DIElement>
<DIElement name="SOURCE_NAME" datatype="VARCHAR" size="100" key="true" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="QRY_EXTRACT.SOURCE_NAME"/>
</DIAttributes>
</DIElement>
<DIElement name="SRC_PRIMARY_KEY" datatype="VARCHAR" size="100" key="true" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="QRY_EXTRACT.SRC_PRIMARY_KEY"/>
</DIAttributes>
</DIElement>
<DIElement name="COSTCATEGORY_NAME_TARGET" datatype="VARCHAR" size="255" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="QRY_EXTRACT.COSTCATEGORY_NAME_TARGET"/>
</DIAttributes>
</DIElement>
<DIElement name="COSTCATEGORY_NAME_ALT" datatype="VARCHAR" size="60" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="QRY_EXTRACT.COSTCATEGORY_NAME_ALT"/>
</DIAttributes>
</DIElement>
<DIElement name="ACCOUNTING_CODE" datatype="VARCHAR" size="60" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="QRY_EXTRACT.ACCOUNTING_CODE"/>
</DIAttributes>
</DIElement>
<DIElement name="SRC_LASTMODDATE" datatype="DATETIME" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="QRY_EXTRACT.SRC_LASTMODDATE"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_FLAG" datatype="VARCHAR" size="60" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="QRY_EXTRACT.MD_FLAG"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_BATCH_ID" datatype="VARCHAR" size="60" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="QRY_EXTRACT.MD_BATCH_ID"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_PROCESS_ID" datatype="VARCHAR" size="60" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="QRY_EXTRACT.MD_PROCESS_ID"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_CP_ID" datatype="INT" key="true" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="QRY_EXTRACT.MD_CP_ID"/>
</DIAttributes>
</DIElement>
<DIElement name="SUB_CATEGORY" datatype="VARCHAR" size="60" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="QRY_EXTRACT.SUB_CATEGORY"/>
</DIAttributes>
</DIElement>
<DIElement name="DETAILED_CATEGORY" datatype="VARCHAR" size="60" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="QRY_EXTRACT.DETAILED_CATEGORY"/>
</DIAttributes>
</DIElement>
</DISchema>
<DISelect>
<DIProjection>
<DIExpression isString="true" expr="QRY_EXTRACT.MD_BUSINESS_KEY" >
<COLUMN_REFERENCE  qualifier1="QRY_EXTRACT" column="MD_BUSINESS_KEY" />
</DIExpression>
<DIExpression isString="true" expr="QRY_EXTRACT.SOURCE_NAME" >
<COLUMN_REFERENCE  qualifier1="QRY_EXTRACT" column="SOURCE_NAME" />
</DIExpression>
<DIExpression isString="true" expr="QRY_EXTRACT.SRC_PRIMARY_KEY" >
<COLUMN_REFERENCE  qualifier1="QRY_EXTRACT" column="SRC_PRIMARY_KEY" />
</DIExpression>
<DIExpression isString="true" expr="QRY_EXTRACT.COSTCATEGORY_NAME_TARGET" >
<COLUMN_REFERENCE  qualifier1="QRY_EXTRACT" column="COSTCATEGORY_NAME_TARGET" />
</DIExpression>
<DIExpression isString="true" expr="QRY_EXTRACT.COSTCATEGORY_NAME_ALT" >
<COLUMN_REFERENCE  qualifier1="QRY_EXTRACT" column="COSTCATEGORY_NAME_ALT" />
</DIExpression>
<DIExpression isString="true" expr="QRY_EXTRACT.ACCOUNTING_CODE" >
<COLUMN_REFERENCE  qualifier1="QRY_EXTRACT" column="ACCOUNTING_CODE" />
</DIExpression>
<DIExpression isString="true" expr="QRY_EXTRACT.SRC_LASTMODDATE" >
<COLUMN_REFERENCE  qualifier1="QRY_EXTRACT" column="SRC_LASTMODDATE" />
</DIExpression>
<DIExpression isString="true" expr="QRY_EXTRACT.MD_FLAG" >
<COLUMN_REFERENCE  qualifier1="QRY_EXTRACT" column="MD_FLAG" />
</DIExpression>
<DIExpression isString="true" expr="QRY_EXTRACT.MD_BATCH_ID" >
<COLUMN_REFERENCE  qualifier1="QRY_EXTRACT" column="MD_BATCH_ID" />
</DIExpression>
<DIExpression isString="true" expr="QRY_EXTRACT.MD_PROCESS_ID" >
<COLUMN_REFERENCE  qualifier1="QRY_EXTRACT" column="MD_PROCESS_ID" />
</DIExpression>
<DIExpression isString="true" expr="QRY_EXTRACT.MD_CP_ID" >
<COLUMN_REFERENCE  qualifier1="QRY_EXTRACT" column="MD_CP_ID" />
</DIExpression>
<DIExpression isString="true" expr="QRY_EXTRACT.SUB_CATEGORY" >
<COLUMN_REFERENCE  qualifier1="QRY_EXTRACT" column="SUB_CATEGORY" />
</DIExpression>
<DIExpression isString="true" expr="QRY_EXTRACT.DETAILED_CATEGORY" >
<COLUMN_REFERENCE  qualifier1="QRY_EXTRACT" column="DETAILED_CATEGORY" />
</DIExpression>
</DIProjection>
<DIFrom>
<DITableSpec name="QRY_EXTRACT" />
</DIFrom>
<DIOrderBys>
<DIOrderBy direction="DESC">
<DIExpression isString="true" expr="QRY_EXTRACT.SOURCE_NAME" >
<COLUMN_REFERENCE  qualifier1="QRY_EXTRACT" column="SOURCE_NAME" />
</DIExpression>
</DIOrderBy>
<DIOrderBy direction="DESC">
<DIExpression isString="true" expr="QRY_EXTRACT.SRC_PRIMARY_KEY" >
<COLUMN_REFERENCE  qualifier1="QRY_EXTRACT" column="SRC_PRIMARY_KEY" />
</DIExpression>
</DIOrderBy>
</DIOrderBys>
</DISelect>
<DIAttributes>
<DIAttribute name="distinct_run_as_separate_process" value="no"/>
<DIAttribute name="group_by_run_as_separate_process" value="no"/>
<DIAttribute name="join_run_as_separate_process" value="no"/>
<DIAttribute name="order_by_run_as_separate_process" value="no"/>
<DIAttribute name="run_as_separate_process" value="no"/>
</DIAttributes>
</DIQuery>

<DIQuery typeId="122"  >
<DIUIOptions>
<DIAttribute name="ui_acta_from_schema_0" value="Query_SORT"/>
<DIAttribute name="ui_display_name" value="QRY_MARK_LATEST"/>
</DIUIOptions>
<DISchema name="QRY_MARK_LATEST" >
<DIElement name="MD_BUSINESS_KEY" datatype="VARCHAR" size="100" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="Query_SORT.MD_BUSINESS_KEY"/>
</DIAttributes>
</DIElement>
<DIElement name="SOURCE_NAME" datatype="VARCHAR" size="100" key="true" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="Query_SORT.SOURCE_NAME"/>
</DIAttributes>
</DIElement>
<DIElement name="SRC_PRIMARY_KEY" datatype="VARCHAR" size="100" key="true" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="Query_SORT.SRC_PRIMARY_KEY"/>
</DIAttributes>
</DIElement>
<DIElement name="COSTCATEGORY_NAME_TARGET" datatype="VARCHAR" size="255" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="Query_SORT.COSTCATEGORY_NAME_TARGET"/>
</DIAttributes>
</DIElement>
<DIElement name="COSTCATEGORY_NAME_ALT" datatype="VARCHAR" size="60" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="Query_SORT.COSTCATEGORY_NAME_ALT"/>
</DIAttributes>
</DIElement>
<DIElement name="ACCOUNTING_CODE" datatype="VARCHAR" size="60" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="Query_SORT.ACCOUNTING_CODE"/>
</DIAttributes>
</DIElement>
<DIElement name="SRC_LASTMODDATE" datatype="DATETIME" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="Query_SORT.SRC_LASTMODDATE"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_FLAG" datatype="VARCHAR" size="60" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="Query_SORT.MD_FLAG"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_BATCH_ID" datatype="VARCHAR" size="60" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="Query_SORT.MD_BATCH_ID"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_PROCESS_ID" datatype="VARCHAR" size="60" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="Query_SORT.MD_PROCESS_ID"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_CP_ID" datatype="INT" key="true" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="Query_SORT.MD_CP_ID"/>
</DIAttributes>
</DIElement>
<DIElement name="MARK_GROUP" datatype="INT" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="is_group_changed(Query_SORT.SOURCE_NAME, Query_SORT.SRC_PRIMARY_KEY)"/>
</DIAttributes>
</DIElement>
<DIElement name="SUB_CATEGORY" datatype="VARCHAR" size="60" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="Query_SORT.SUB_CATEGORY"/>
</DIAttributes>
</DIElement>
<DIElement name="DETAILED_CATEGORY" datatype="VARCHAR" size="60" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="Query_SORT.DETAILED_CATEGORY"/>
</DIAttributes>
</DIElement>
</DISchema>
<DISelect>
<DIProjection>
<DIExpression isString="true" expr="Query_SORT.MD_BUSINESS_KEY" >
<COLUMN_REFERENCE  qualifier1="Query_SORT" column="MD_BUSINESS_KEY" />
</DIExpression>
<DIExpression isString="true" expr="Query_SORT.SOURCE_NAME" >
<COLUMN_REFERENCE  qualifier1="Query_SORT" column="SOURCE_NAME" />
</DIExpression>
<DIExpression isString="true" expr="Query_SORT.SRC_PRIMARY_KEY" >
<COLUMN_REFERENCE  qualifier1="Query_SORT" column="SRC_PRIMARY_KEY" />
</DIExpression>
<DIExpression isString="true" expr="Query_SORT.COSTCATEGORY_NAME_TARGET" >
<COLUMN_REFERENCE  qualifier1="Query_SORT" column="COSTCATEGORY_NAME_TARGET" />
</DIExpression>
<DIExpression isString="true" expr="Query_SORT.COSTCATEGORY_NAME_ALT" >
<COLUMN_REFERENCE  qualifier1="Query_SORT" column="COSTCATEGORY_NAME_ALT" />
</DIExpression>
<DIExpression isString="true" expr="Query_SORT.ACCOUNTING_CODE" >
<COLUMN_REFERENCE  qualifier1="Query_SORT" column="ACCOUNTING_CODE" />
</DIExpression>
<DIExpression isString="true" expr="Query_SORT.SRC_LASTMODDATE" >
<COLUMN_REFERENCE  qualifier1="Query_SORT" column="SRC_LASTMODDATE" />
</DIExpression>
<DIExpression isString="true" expr="Query_SORT.MD_FLAG" >
<COLUMN_REFERENCE  qualifier1="Query_SORT" column="MD_FLAG" />
</DIExpression>
<DIExpression isString="true" expr="Query_SORT.MD_BATCH_ID" >
<COLUMN_REFERENCE  qualifier1="Query_SORT" column="MD_BATCH_ID" />
</DIExpression>
<DIExpression isString="true" expr="Query_SORT.MD_PROCESS_ID" >
<COLUMN_REFERENCE  qualifier1="Query_SORT" column="MD_PROCESS_ID" />
</DIExpression>
<DIExpression isString="true" expr="Query_SORT.MD_CP_ID" >
<COLUMN_REFERENCE  qualifier1="Query_SORT" column="MD_CP_ID" />
</DIExpression>
<DIExpression isString="true" expr="is_group_changed(Query_SORT.SOURCE_NAME, Query_SORT.SRC_PRIMARY_KEY)" >
<FUNCTION_CALL name="is_group_changed"  type="DI" >
<COLUMN_REFERENCE  qualifier1="Query_SORT" column="SOURCE_NAME" />
<COLUMN_REFERENCE  qualifier1="Query_SORT" column="SRC_PRIMARY_KEY" />
</FUNCTION_CALL>
</DIExpression>
<DIExpression isString="true" expr="Query_SORT.SUB_CATEGORY" >
<COLUMN_REFERENCE  qualifier1="Query_SORT" column="SUB_CATEGORY" />
</DIExpression>
<DIExpression isString="true" expr="Query_SORT.DETAILED_CATEGORY" >
<COLUMN_REFERENCE  qualifier1="Query_SORT" column="DETAILED_CATEGORY" />
</DIExpression>
</DIProjection>
<DIFrom>
<DITableSpec name="Query_SORT" />
</DIFrom>
</DISelect>
<DIAttributes>
<DIAttribute name="distinct_run_as_separate_process" value="no"/>
<DIAttribute name="group_by_run_as_separate_process" value="no"/>
<DIAttribute name="join_run_as_separate_process" value="no"/>
<DIAttribute name="order_by_run_as_separate_process" value="no"/>
<DIAttribute name="run_as_separate_process" value="no"/>
</DIAttributes>
</DIQuery>

<DIQuery typeId="122"  >
<DIUIOptions>
<DIAttribute name="ui_acta_from_schema_0" value="QRY_MARK_LATEST"/>
<DIAttribute name="ui_display_name" value="QRY_FILTER_DUPLICATE"/>
<DIAttribute name="ui_where_text" value="QRY_MARK_LATEST.MARK_GROUP=1"/>
</DIUIOptions>
<DISchema name="QRY_FILTER_DUPLICATE" >
<DIElement name="MD_BUSINESS_KEY" datatype="VARCHAR" size="100" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="QRY_MARK_LATEST.MD_BUSINESS_KEY"/>
</DIAttributes>
</DIElement>
<DIElement name="SOURCE_NAME" datatype="VARCHAR" size="100" key="true" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="QRY_MARK_LATEST.SOURCE_NAME"/>
</DIAttributes>
</DIElement>
<DIElement name="SRC_PRIMARY_KEY" datatype="VARCHAR" size="100" key="true" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="QRY_MARK_LATEST.SRC_PRIMARY_KEY"/>
</DIAttributes>
</DIElement>
<DIElement name="COSTCATEGORY_NAME_TARGET" datatype="VARCHAR" size="255" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="QRY_MARK_LATEST.COSTCATEGORY_NAME_TARGET"/>
</DIAttributes>
</DIElement>
<DIElement name="COSTCATEGORY_NAME_ALT" datatype="VARCHAR" size="60" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="QRY_MARK_LATEST.COSTCATEGORY_NAME_ALT"/>
</DIAttributes>
</DIElement>
<DIElement name="ACCOUNTING_CODE" datatype="VARCHAR" size="60" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="QRY_MARK_LATEST.ACCOUNTING_CODE"/>
</DIAttributes>
</DIElement>
<DIElement name="SRC_LASTMODDATE" datatype="DATETIME" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="QRY_MARK_LATEST.SRC_LASTMODDATE"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_FLAG" datatype="VARCHAR" size="60" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="QRY_MARK_LATEST.MD_FLAG"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_BATCH_ID" datatype="VARCHAR" size="60" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="QRY_MARK_LATEST.MD_BATCH_ID"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_PROCESS_ID" datatype="VARCHAR" size="60" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="QRY_MARK_LATEST.MD_PROCESS_ID"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_CP_ID" datatype="INT" key="true" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="QRY_MARK_LATEST.MD_CP_ID"/>
</DIAttributes>
</DIElement>
<DIElement name="SUB_CATEGORY" datatype="VARCHAR" size="60" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="QRY_MARK_LATEST.SUB_CATEGORY"/>
</DIAttributes>
</DIElement>
<DIElement name="DETAILED_CATEGORY" datatype="VARCHAR" size="60" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="QRY_MARK_LATEST.DETAILED_CATEGORY"/>
</DIAttributes>
</DIElement>
</DISchema>
<DISelect>
<DIProjection>
<DIExpression isString="true" expr="QRY_MARK_LATEST.MD_BUSINESS_KEY" >
<COLUMN_REFERENCE  qualifier1="QRY_MARK_LATEST" column="MD_BUSINESS_KEY" />
</DIExpression>
<DIExpression isString="true" expr="QRY_MARK_LATEST.SOURCE_NAME" >
<COLUMN_REFERENCE  qualifier1="QRY_MARK_LATEST" column="SOURCE_NAME" />
</DIExpression>
<DIExpression isString="true" expr="QRY_MARK_LATEST.SRC_PRIMARY_KEY" >
<COLUMN_REFERENCE  qualifier1="QRY_MARK_LATEST" column="SRC_PRIMARY_KEY" />
</DIExpression>
<DIExpression isString="true" expr="QRY_MARK_LATEST.COSTCATEGORY_NAME_TARGET" >
<COLUMN_REFERENCE  qualifier1="QRY_MARK_LATEST" column="COSTCATEGORY_NAME_TARGET" />
</DIExpression>
<DIExpression isString="true" expr="QRY_MARK_LATEST.COSTCATEGORY_NAME_ALT" >
<COLUMN_REFERENCE  qualifier1="QRY_MARK_LATEST" column="COSTCATEGORY_NAME_ALT" />
</DIExpression>
<DIExpression isString="true" expr="QRY_MARK_LATEST.ACCOUNTING_CODE" >
<COLUMN_REFERENCE  qualifier1="QRY_MARK_LATEST" column="ACCOUNTING_CODE" />
</DIExpression>
<DIExpression isString="true" expr="QRY_MARK_LATEST.SRC_LASTMODDATE" >
<COLUMN_REFERENCE  qualifier1="QRY_MARK_LATEST" column="SRC_LASTMODDATE" />
</DIExpression>
<DIExpression isString="true" expr="QRY_MARK_LATEST.MD_FLAG" >
<COLUMN_REFERENCE  qualifier1="QRY_MARK_LATEST" column="MD_FLAG" />
</DIExpression>
<DIExpression isString="true" expr="QRY_MARK_LATEST.MD_BATCH_ID" >
<COLUMN_REFERENCE  qualifier1="QRY_MARK_LATEST" column="MD_BATCH_ID" />
</DIExpression>
<DIExpression isString="true" expr="QRY_MARK_LATEST.MD_PROCESS_ID" >
<COLUMN_REFERENCE  qualifier1="QRY_MARK_LATEST" column="MD_PROCESS_ID" />
</DIExpression>
<DIExpression isString="true" expr="QRY_MARK_LATEST.MD_CP_ID" >
<COLUMN_REFERENCE  qualifier1="QRY_MARK_LATEST" column="MD_CP_ID" />
</DIExpression>
<DIExpression isString="true" expr="QRY_MARK_LATEST.SUB_CATEGORY" >
<COLUMN_REFERENCE  qualifier1="QRY_MARK_LATEST" column="SUB_CATEGORY" />
</DIExpression>
<DIExpression isString="true" expr="QRY_MARK_LATEST.DETAILED_CATEGORY" >
<COLUMN_REFERENCE  qualifier1="QRY_MARK_LATEST" column="DETAILED_CATEGORY" />
</DIExpression>
</DIProjection>
<DIFrom>
<DITableSpec name="QRY_MARK_LATEST" />
</DIFrom>
<DIWhere>
<DIExpression isString="true" expr="(QRY_MARK_LATEST.MARK_GROUP = 1)" >
<LOGICAL_OP op="EQ">
<COLUMN_REFERENCE  qualifier1="QRY_MARK_LATEST" column="MARK_GROUP" />
<CONSTANT value="1" datatype="INT" />
</LOGICAL_OP>
</DIExpression>
</DIWhere>
<DIOrderBys>
<DIOrderBy direction="ASC">
<DIExpression isString="true" expr="QRY_MARK_LATEST.SOURCE_NAME" >
<COLUMN_REFERENCE  qualifier1="QRY_MARK_LATEST" column="SOURCE_NAME" />
</DIExpression>
</DIOrderBy>
<DIOrderBy direction="ASC">
<DIExpression isString="true" expr="QRY_MARK_LATEST.SRC_PRIMARY_KEY" >
<COLUMN_REFERENCE  qualifier1="QRY_MARK_LATEST" column="SRC_PRIMARY_KEY" />
</DIExpression>
</DIOrderBy>
<DIOrderBy direction="ASC">
<DIExpression isString="true" expr="QRY_MARK_LATEST.MD_CP_ID" >
<COLUMN_REFERENCE  qualifier1="QRY_MARK_LATEST" column="MD_CP_ID" />
</DIExpression>
</DIOrderBy>
</DIOrderBys>
</DISelect>
<DIAttributes>
<DIAttribute name="distinct_run_as_separate_process" value="no"/>
<DIAttribute name="group_by_run_as_separate_process" value="no"/>
<DIAttribute name="join_run_as_separate_process" value="no"/>
<DIAttribute name="order_by_run_as_separate_process" value="no"/>
<DIAttribute name="run_as_separate_process" value="no"/>
</DIAttributes>
</DIQuery>

</DITransforms>
<DIAttributes>
<DIAttribute name="Audit" hasNestedXMLTree ="true">
<Audit>
<AuditObjects>
</AuditObjects>
<AuditRules>
</AuditRules>
<Notifications>
<RaiseException Enabled="true">
</RaiseException>
<Mail Enabled="false"/>
<Script Enabled="false"/>
</Notifications>
</Audit>
</DIAttribute>
<DIAttribute name="Cache_type" value="pageable_cache"/>
<DIAttribute name="Parallelism_degree" value="0"/>
<DIAttribute name="allows_both_input_and_output" value="yes"/>
<DIAttribute name="run_once" value="no"/>
<DIAttribute name="use_dataflow_links" value="no"/>
<DIAttribute name="use_datastore_links" value="yes"/>
<DIAttribute name="validation_xform_exists" value="no"/>
<DIAttribute name="validation_xform_stats" value="no"/>
</DIAttributes>
</DIDataflow>
<DIWorkflow name="MEASURETYPE_EXTERNAL_SOURCE_EXTRACT_FF_WF" typeId="2" >
<DIVariables>
<DIElement paramType="LOCAL" name="$L_IDENTIFIER" datatype="VARCHAR" size="100" >
</DIElement>
</DIVariables>
<DISteps>
<DITryStep typeId="13" >
<DIUIOptions>
<DIAttribute name="AutoLayout" value="yes"/>
<DIAttribute name="ObjectDesc" value="the Try of the Try / Catch Block"/>
<DIAttribute name="ui_display_name" value="MEASURETYPE_EXTERNAL_EXTRACT_FF_TRY"/>
</DIUIOptions>
<DISteps>
<DIScript>
<DIUIOptions>
<DIAttribute name="ObjectDesc" value="The workflow script object {Source Table}_FF_START_SC.  This script calls the custom function STARTWF_FN.  This script opens the metadata records that are part of this process.  The script will also be used to populate the local workflow variables.  The script body will contain:&#xA;&#xA;Script Body&#x9;&#xA;STARTWF_FN('{Source Sys}', '{Source Table}_FF');&#xA;$FLAT_FILE_NAME_LV = ‘{Source Table}_FF’||$ETL_BATCH_ID_GV||.txt&#xA;$AUDIT_FILE_NAME_LV = ‘{Source Table}_AUDIT’||$ETL_BATCH_ID_GV||.txt"/>
<DIAttribute name="ui_display_name" value="MEASURETYPE_EXTERNAL_EXTRACT_FF_START_SC"/>
<DIAttribute name="ui_script_text" value="# ---------------------&#xD;&#xA;#-- ABC ---&#xD;&#xA;$L_IDENTIFIER = workflow_name();&#xD;&#xA;ABC_STARTWF_FN($L_IDENTIFIER, $G_PROCESS_ID);&#xD;&#xA;&#xD;&#xA;&#xD;&#xA;&#xD;&#xA;&#xD;&#xA;&#xD;&#xA;&#xD;&#xA;&#xD;&#xA;&#xD;&#xA;&#xD;&#xA;&#xD;&#xA;"/>
</DIUIOptions>
<DIAssignmentStep typeId="12" variable="$L_IDENTIFIER" >
<DIExpression isString="true" expr="workflow_name()" >
<FUNCTION_CALL name="workflow_name"  type="DI" />
</DIExpression>
</DIAssignmentStep>
<DIFunctionCallStep typeId="23" >
<DIExpression isString="true" expr="abc_startwf_fn($L_IDENTIFIER, $G_PROCESS_ID)" >
<FUNCTION_CALL name="abc_startwf_fn"  type="DI" >
<VARIABLE_REFERENCE name="$L_IDENTIFIER" />
<VARIABLE_REFERENCE name="$G_PROCESS_ID" />
</FUNCTION_CALL>
</DIExpression>
</DIFunctionCallStep>
</DIScript>
<DICallStep typeId="1"  calledObjectType="Dataflow" name="MEASURETYPE_EXTERNAL_SOURCE_EXTRACT_FF_DF" >
</DICallStep>
<DIScript>
<DIUIOptions>
<DIAttribute name="ObjectDesc" value="The workflow script object {Source Table}_FF_END_SC.  This script calls the custom function ENDWF_FN.  This script closes the metadata records that are part of this process.  The script body will contain:&#xA;&#xA;Script Body&#x9;&#xA;ENDWF_FN('{Source Sys}', '{Source Table}_FF')"/>
<DIAttribute name="ui_display_name" value="MEASURETYPE_EXTERNAL_EXTRACT_FF_END_SC"/>
<DIAttribute name="ui_script_text" value="# this script has been generated from template SubExtWfExitScript &#xD;&#xA;# Template version V1.0&#xD;&#xA;# ---------------------&#xD;&#xA;#--- ABC ---&#xD;&#xA;ABC_ENDWF_FN($L_IDENTIFIER, $G_PROCESS_ID);&#xD;&#xA;#---- END ABC ----&#xD;&#xA;&#xD;&#xA;if($G_TRACE_MODE = 1)&#xD;&#xA;Begin&#xD;&#xA;print(' ');&#xD;&#xA;print(' ');&#xD;&#xA;print('The Workfolw ' || workflow_name() || ' has completed running in Debug mode.');&#xD;&#xA;print(' ');&#xD;&#xA;print(' ');&#xD;&#xA;END"/>
</DIUIOptions>
<DIFunctionCallStep typeId="23" >
<DIExpression isString="true" expr="abc_endwf_fn($L_IDENTIFIER, $G_PROCESS_ID)" >
<FUNCTION_CALL name="abc_endwf_fn"  type="DI" >
<VARIABLE_REFERENCE name="$L_IDENTIFIER" />
<VARIABLE_REFERENCE name="$G_PROCESS_ID" />
</FUNCTION_CALL>
</DIExpression>
</DIFunctionCallStep>
<DIIfStep typeId="2" >
<DIExpression isString="true" expr="($G_TRACE_MODE = 1)" >
<LOGICAL_OP op="EQ">
<VARIABLE_REFERENCE name="$G_TRACE_MODE" />
<CONSTANT value="1" datatype="INT" />
</LOGICAL_OP>
</DIExpression>
<DIIf>
<DIFunctionCallStep typeId="23" >
<DIExpression isString="true" expr="print(' ')" >
<FUNCTION_CALL name="print"  type="DI" >
<CONSTANT value=" " datatype="VARCHAR" size="1" />
</FUNCTION_CALL>
</DIExpression>
</DIFunctionCallStep>
<DIFunctionCallStep typeId="23" >
<DIExpression isString="true" expr="print(' ')" >
<FUNCTION_CALL name="print"  type="DI" >
<CONSTANT value=" " datatype="VARCHAR" size="1" />
</FUNCTION_CALL>
</DIExpression>
</DIFunctionCallStep>
<DIFunctionCallStep typeId="23" >
<DIExpression isString="true" expr="print((('The Workfolw ' || workflow_name()) || ' has completed running in Debug mode.'))" >
<FUNCTION_CALL name="print"  type="DI" >
<CONCAT>
<CONCAT>
<CONSTANT value="The Workfolw " datatype="VARCHAR" size="13" />
<FUNCTION_CALL name="workflow_name"  type="DI" />
</CONCAT>
<CONSTANT value=" has completed running in Debug mode." datatype="VARCHAR" size="37" />
</CONCAT>
</FUNCTION_CALL>
</DIExpression>
</DIFunctionCallStep>
<DIFunctionCallStep typeId="23" >
<DIExpression isString="true" expr="print(' ')" >
<FUNCTION_CALL name="print"  type="DI" >
<CONSTANT value=" " datatype="VARCHAR" size="1" />
</FUNCTION_CALL>
</DIExpression>
</DIFunctionCallStep>
<DIFunctionCallStep typeId="23" >
<DIExpression isString="true" expr="print(' ')" >
<FUNCTION_CALL name="print"  type="DI" >
<CONSTANT value=" " datatype="VARCHAR" size="1" />
</FUNCTION_CALL>
</DIExpression>
</DIFunctionCallStep>
</DIIf>
<DIElse>
</DIElse>
</DIIfStep>
</DIScript>
</DISteps>
<DICatch typeId="20" errorCode="210101" >
<DIUIOptions>
<DIAttribute name="AutoLayout" value="yes"/>
<DIAttribute name="ObjectDesc" value="The workflow catch object {Source Table}_FF_CATCH is the end of the TRY/CATCH block in BO DS.  This catch block will contain the script {Source Table}_FF_FAIL_SC.  This script will call the custom function that is used to write the metadata for failed jobs.  The script will contain the following call.&#xA;&#xA;Script Body&#x9;FAILWF_FN('{Source Sys}', '{Source Table}_FF')"/>
<DIAttribute name="ui_display_name" value="MEASURETYPE_EXTERNAL_EXTRACT_FF_CATCH"/>
</DIUIOptions>
<DISteps>
<DIScript>
<DIUIOptions>
<DIAttribute name="ui_display_name" value="MEASURETYPE_EXTERNAL_EXTRACT_FF_FAIL_SC"/>
<DIAttribute name="ui_script_text" value="#ABC - CALL FUNCTION TO TRACK END OF WORKFLOW&#xD;&#xA;ABC_FAILWF_FN(workflow_name(), $G_PROCESS_ID, 'Error: \[' || error_number() || '\] ' || error_message());&#xD;&#xA;&#xD;&#xA;#----&#xD;&#xA;if( $G_TRACE_MODE = 1)&#xD;&#xA;Begin&#xD;&#xA;print(' ');&#xD;&#xA;print(' ');&#xD;&#xA;print('Message from the MEASURETYPE_EXTERNAL_EXTRACT_FF_CATCH Block Script:');&#xD;&#xA;print('The Workflow ' || workflow_name() || ' has failed to run.');&#xD;&#xA;print(' ');&#xD;&#xA;print(' ');&#xD;&#xA;End"/>
</DIUIOptions>
<DIFunctionCallStep typeId="23" >
<DIExpression isString="true" expr="abc_failwf_fn(workflow_name(), $G_PROCESS_ID, ((('Error: \\[' || error_number()) || '\\] ') || error_message()))" >
<FUNCTION_CALL name="abc_failwf_fn"  type="DI" >
<FUNCTION_CALL name="workflow_name"  type="DI" />
<VARIABLE_REFERENCE name="$G_PROCESS_ID" />
<CONCAT>
<CONCAT>
<CONCAT>
<CONSTANT value="Error: \[" datatype="VARCHAR" size="9" />
<FUNCTION_CALL name="error_number"  type="DI" />
</CONCAT>
<CONSTANT value="\] " datatype="VARCHAR" size="3" />
</CONCAT>
<FUNCTION_CALL name="error_message"  type="DI" />
</CONCAT>
</FUNCTION_CALL>
</DIExpression>
</DIFunctionCallStep>
<DIIfStep typeId="2" >
<DIExpression isString="true" expr="($G_TRACE_MODE = 1)" >
<LOGICAL_OP op="EQ">
<VARIABLE_REFERENCE name="$G_TRACE_MODE" />
<CONSTANT value="1" datatype="INT" />
</LOGICAL_OP>
</DIExpression>
<DIIf>
<DIFunctionCallStep typeId="23" >
<DIExpression isString="true" expr="print(' ')" >
<FUNCTION_CALL name="print"  type="DI" >
<CONSTANT value=" " datatype="VARCHAR" size="1" />
</FUNCTION_CALL>
</DIExpression>
</DIFunctionCallStep>
<DIFunctionCallStep typeId="23" >
<DIExpression isString="true" expr="print(' ')" >
<FUNCTION_CALL name="print"  type="DI" >
<CONSTANT value=" " datatype="VARCHAR" size="1" />
</FUNCTION_CALL>
</DIExpression>
</DIFunctionCallStep>
<DIFunctionCallStep typeId="23" >
<DIExpression isString="true" expr="print('Message from the MEASURETYPE_EXTERNAL_EXTRACT_FF_CATCH Block Script:')" >
<FUNCTION_CALL name="print"  type="DI" >
<CONSTANT value="Message from the MEASURETYPE_EXTERNAL_EXTRACT_FF_CATCH Block Script:" datatype="VARCHAR" size="68" />
</FUNCTION_CALL>
</DIExpression>
</DIFunctionCallStep>
<DIFunctionCallStep typeId="23" >
<DIExpression isString="true" expr="print((('The Workflow ' || workflow_name()) || ' has failed to run.'))" >
<FUNCTION_CALL name="print"  type="DI" >
<CONCAT>
<CONCAT>
<CONSTANT value="The Workflow " datatype="VARCHAR" size="13" />
<FUNCTION_CALL name="workflow_name"  type="DI" />
</CONCAT>
<CONSTANT value=" has failed to run." datatype="VARCHAR" size="19" />
</CONCAT>
</FUNCTION_CALL>
</DIExpression>
</DIFunctionCallStep>
<DIFunctionCallStep typeId="23" >
<DIExpression isString="true" expr="print(' ')" >
<FUNCTION_CALL name="print"  type="DI" >
<CONSTANT value=" " datatype="VARCHAR" size="1" />
</FUNCTION_CALL>
</DIExpression>
</DIFunctionCallStep>
<DIFunctionCallStep typeId="23" >
<DIExpression isString="true" expr="print(' ')" >
<FUNCTION_CALL name="print"  type="DI" >
<CONSTANT value=" " datatype="VARCHAR" size="1" />
</FUNCTION_CALL>
</DIExpression>
</DIFunctionCallStep>
</DIIf>
<DIElse>
</DIElse>
</DIIfStep>
</DIScript>
</DISteps>
</DICatch>
</DITryStep>
</DISteps>
<DIAttributes>
<DIAttribute name="run_once" value="no"/>
<DIAttribute name="unit_of_recovery" value="no"/>
</DIAttributes>
</DIWorkflow>
<DIDataflow name="MEASURETYPE_EXTERNAL_SOURCE_EXTRACT_FF_DF" typeId="1" >
<DIUIOptions>
<DIAttribute name="AutoLayout" value="yes"/>
</DIUIOptions>
<DITransforms>
<DIExcelSource typeID="130" datastoreName="MEASURETYPE_EXTN_SOURCE_XLS" name="MEASURETYPE_EXTN_SOURCE_XLS" >
<DIOutputView name="MEASURETYPE_EXTN_SOURCE_XLS"  />
<DIAttributes>
<DIAttribute name="MSExcel_capture_data_conversion" value="no"/>
<DIAttribute name="MSExcel_data_access" value="MSExcel_none"/>
<DIAttribute name="cache" value="no"/>
<DIAttribute name="connection_port" value="no"/>
<DIAttribute name="reader_filename_col" value="DI_FILENAME"/>
<DIAttribute name="reader_filename_col_size" value="100"/>
<DIAttribute name="reader_filename_only" value="yes"/>
<DIAttribute name="reader_include_filename" value="no"/>
<DIAttribute name="table_weight" value="0"/>
</DIAttributes>
</DIExcelSource>

<DIDatabaseTableTarget typeID="11" bulkLoader="false" datastoreName="SRCSTAGING_DS" ownerName="SRCSTAGING_ALIAS" tableName="MEASURETYPE_EXTT" >
<DIInputView name="Map_Operation_1"  />
<DIAttributes>
<DIAttribute name="LDRLiveLoad" value="no"/>
<DIAttribute name="Table_Type" value="TABLE"/>
<DIAttribute name="connection_port" value="no"/>
<DIAttribute name="ldr_configuration_enabled" value="yes"/>
<DIAttribute name="ldr_configurations" hasNestedXMLTree ="true">
<LDRConfigurations>
<LDRConfiguration database_type="Microsoft_SQL_Server" database_version="Microsoft SQL Server 2005">
<auto_correct_using_merge>Yes</auto_correct_using_merge>
<bulk_ldr_all_rows/>
<bulk_ldr_max_errors/>
<bulk_ldr_rows_per_commit/>
<enable_partitioning>no</enable_partitioning>
<ignore_column_case>yes</ignore_column_case>
<ignore_columns_null>no</ignore_columns_null>
<ignore_columns_value/>
<loader_auto_correct>yes</loader_auto_correct>
<loader_bulk_load>0</loader_bulk_load>
<loader_compare_column>compare_by_name</loader_compare_column>
<loader_delete_map/>
<loader_drop_and_create_table>no</loader_drop_and_create_table>
<loader_insert_map/>
<loader_load_choice>append</loader_load_choice>
<loader_num_parallel_loaders>1</loader_num_parallel_loaders>
<loader_overflow_file>SRCSTAGING_DS_SRCSTAGING_ALIAS_MEASURETYPE_EXTT.txt</loader_overflow_file>
<loader_post_load1/>
<loader_pre_load1/>
<loader_quote_names>0</loader_quote_names>
<loader_transactional>no</loader_transactional>
<loader_transactional_order>0</loader_transactional_order>
<loader_update_key_columns>no</loader_update_key_columns>
<loader_update_map/>
<loader_use_user_defined_keys>no</loader_use_user_defined_keys>
<loader_xact_size>1000</loader_xact_size>
<mssql_bulk_ldr_mode>truncate</mssql_bulk_ldr_mode>
<mssql_bulk_ldr_packet_size>4</mssql_bulk_ldr_packet_size>
<overflow_file_format>Write data</overflow_file_format>
<overriding_substitution_parameter_for_tablename/>
<use_overflow_file>no</use_overflow_file>
<use_unicode_varchar>no</use_unicode_varchar>
<sql_text/>
</LDRConfiguration>
</LDRConfigurations>
</DIAttribute>
<DIAttribute name="loader_template_table" value="no"/>
<DIAttribute name="name" value="SRCSTAGING_DS"/>
<DIAttribute name="use_unicode_varchar" value="no"/>
</DIAttributes>
</DIDatabaseTableTarget>

<DIQuery typeId="122"  >
<DIUIOptions>
<DIAttribute name="ui_acta_from_schema_0" value="MEASURETYPE_EXTN_SOURCE_XLS"/>
<DIAttribute name="ui_display_name" value="Query_Map"/>
</DIUIOptions>
<DISchema name="Query_Map" >
<DIElement name="MD_BUSINESS_KEY" datatype="VARCHAR" size="100" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="MEASURETYPE_EXTN_SOURCE_XLS.TARGET_MEASURE_NAME"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_BATCH_ID" datatype="DECIMAL" precision="19" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="$G_BATCH_ID"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_PROCESS_ID" datatype="DECIMAL" precision="19" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="$G_PROCESS_ID"/>
</DIAttributes>
</DIElement>
<DIElement name="SRC_PRIMARY_KEY" datatype="VARCHAR" size="100" key="true" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="MEASURETYPE_EXTN_SOURCE_XLS.SOURCE_PRIMARYKEY"/>
</DIAttributes>
</DIElement>
<DIElement name="SOURCE_NAME" datatype="VARCHAR" size="60" key="true" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="MEASURETYPE_EXTN_SOURCE_XLS.SOURCE_NAME"/>
</DIAttributes>
</DIElement>
<DIElement name="SOURCE_MEASURETYPE_NAME" datatype="VARCHAR" size="100" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="MEASURETYPE_EXTN_SOURCE_XLS.SOURCE_MEASURE_NAME"/>
</DIAttributes>
</DIElement>
<DIElement name="MEASURETYPE_NAME" datatype="VARCHAR" size="100" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="MEASURETYPE_EXTN_SOURCE_XLS.TARGET_MEASURE_NAME"/>
</DIAttributes>
</DIElement>
<DIElement name="DESCRIPTION" datatype="VARCHAR" size="1024" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="MEASURETYPE_EXTN_SOURCE_XLS.TARGET_MEASURE_DESC"/>
</DIAttributes>
</DIElement>
</DISchema>
<DISelect isDistinct="true">
<DIProjection>
<DIExpression isString="true" expr="MEASURETYPE_EXTN_SOURCE_XLS.TARGET_MEASURE_NAME" >
<COLUMN_REFERENCE  qualifier1="MEASURETYPE_EXTN_SOURCE_XLS" column="TARGET_MEASURE_NAME" />
</DIExpression>
<DIExpression isString="true" expr="$G_BATCH_ID" >
<VARIABLE_REFERENCE name="$G_BATCH_ID" />
</DIExpression>
<DIExpression isString="true" expr="$G_PROCESS_ID" >
<VARIABLE_REFERENCE name="$G_PROCESS_ID" />
</DIExpression>
<DIExpression isString="true" expr="MEASURETYPE_EXTN_SOURCE_XLS.SOURCE_PRIMARYKEY" >
<COLUMN_REFERENCE  qualifier1="MEASURETYPE_EXTN_SOURCE_XLS" column="SOURCE_PRIMARYKEY" />
</DIExpression>
<DIExpression isString="true" expr="MEASURETYPE_EXTN_SOURCE_XLS.SOURCE_NAME" >
<COLUMN_REFERENCE  qualifier1="MEASURETYPE_EXTN_SOURCE_XLS" column="SOURCE_NAME" />
</DIExpression>
<DIExpression isString="true" expr="MEASURETYPE_EXTN_SOURCE_XLS.SOURCE_MEASURE_NAME" >
<COLUMN_REFERENCE  qualifier1="MEASURETYPE_EXTN_SOURCE_XLS" column="SOURCE_MEASURE_NAME" />
</DIExpression>
<DIExpression isString="true" expr="MEASURETYPE_EXTN_SOURCE_XLS.TARGET_MEASURE_NAME" >
<COLUMN_REFERENCE  qualifier1="MEASURETYPE_EXTN_SOURCE_XLS" column="TARGET_MEASURE_NAME" />
</DIExpression>
<DIExpression isString="true" expr="MEASURETYPE_EXTN_SOURCE_XLS.TARGET_MEASURE_DESC" >
<COLUMN_REFERENCE  qualifier1="MEASURETYPE_EXTN_SOURCE_XLS" column="TARGET_MEASURE_DESC" />
</DIExpression>
</DIProjection>
<DIFrom>
<DITableSpec name="MEASURETYPE_EXTN_SOURCE_XLS" />
</DIFrom>
</DISelect>
<DIAttributes>
<DIAttribute name="distinct_run_as_separate_process" value="no"/>
<DIAttribute name="group_by_run_as_separate_process" value="no"/>
<DIAttribute name="join_run_as_separate_process" value="no"/>
<DIAttribute name="order_by_run_as_separate_process" value="no"/>
<DIAttribute name="run_as_separate_process" value="no"/>
</DIAttributes>
</DIQuery>

<DIQuery typeId="122"  >
<DIUIOptions>
<DIAttribute name="ui_acta_from_schema_0" value="Query_Map"/>
<DIAttribute name="ui_display_name" value="Query_Sort"/>
</DIUIOptions>
<DISchema name="Query_Sort" >
<DIElement name="MD_BUSINESS_KEY" datatype="VARCHAR" size="100" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="Query_Map.MD_BUSINESS_KEY"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_BATCH_ID" datatype="DECIMAL" precision="19" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="Query_Map.MD_BATCH_ID"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_PROCESS_ID" datatype="DECIMAL" precision="19" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="Query_Map.MD_PROCESS_ID"/>
</DIAttributes>
</DIElement>
<DIElement name="SRC_PRIMARY_KEY" datatype="VARCHAR" size="100" key="true" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="Query_Map.SRC_PRIMARY_KEY"/>
</DIAttributes>
</DIElement>
<DIElement name="SOURCE_NAME" datatype="VARCHAR" size="60" key="true" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="Query_Map.SOURCE_NAME"/>
</DIAttributes>
</DIElement>
<DIElement name="SOURCE_MEASURETYPE_NAME" datatype="VARCHAR" size="100" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="Query_Map.SOURCE_MEASURETYPE_NAME"/>
</DIAttributes>
</DIElement>
<DIElement name="MEASURETYPE_NAME" datatype="VARCHAR" size="100" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="Query_Map.MEASURETYPE_NAME"/>
</DIAttributes>
</DIElement>
<DIElement name="DESCRIPTION" datatype="VARCHAR" size="1024" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="Query_Map.DESCRIPTION"/>
</DIAttributes>
</DIElement>
</DISchema>
<DISelect>
<DIProjection>
<DIExpression isString="true" expr="Query_Map.MD_BUSINESS_KEY" >
<COLUMN_REFERENCE  qualifier1="Query_Map" column="MD_BUSINESS_KEY" />
</DIExpression>
<DIExpression isString="true" expr="Query_Map.MD_BATCH_ID" >
<COLUMN_REFERENCE  qualifier1="Query_Map" column="MD_BATCH_ID" />
</DIExpression>
<DIExpression isString="true" expr="Query_Map.MD_PROCESS_ID" >
<COLUMN_REFERENCE  qualifier1="Query_Map" column="MD_PROCESS_ID" />
</DIExpression>
<DIExpression isString="true" expr="Query_Map.SRC_PRIMARY_KEY" >
<COLUMN_REFERENCE  qualifier1="Query_Map" column="SRC_PRIMARY_KEY" />
</DIExpression>
<DIExpression isString="true" expr="Query_Map.SOURCE_NAME" >
<COLUMN_REFERENCE  qualifier1="Query_Map" column="SOURCE_NAME" />
</DIExpression>
<DIExpression isString="true" expr="Query_Map.SOURCE_MEASURETYPE_NAME" >
<COLUMN_REFERENCE  qualifier1="Query_Map" column="SOURCE_MEASURETYPE_NAME" />
</DIExpression>
<DIExpression isString="true" expr="Query_Map.MEASURETYPE_NAME" >
<COLUMN_REFERENCE  qualifier1="Query_Map" column="MEASURETYPE_NAME" />
</DIExpression>
<DIExpression isString="true" expr="Query_Map.DESCRIPTION" >
<COLUMN_REFERENCE  qualifier1="Query_Map" column="DESCRIPTION" />
</DIExpression>
</DIProjection>
<DIFrom>
<DITableSpec name="Query_Map" />
</DIFrom>
<DIOrderBys>
<DIOrderBy direction="DESC">
<DIExpression isString="true" expr="Query_Map.SOURCE_NAME" >
<COLUMN_REFERENCE  qualifier1="Query_Map" column="SOURCE_NAME" />
</DIExpression>
</DIOrderBy>
<DIOrderBy direction="DESC">
<DIExpression isString="true" expr="Query_Map.SRC_PRIMARY_KEY" >
<COLUMN_REFERENCE  qualifier1="Query_Map" column="SRC_PRIMARY_KEY" />
</DIExpression>
</DIOrderBy>
</DIOrderBys>
</DISelect>
<DIAttributes>
<DIAttribute name="distinct_run_as_separate_process" value="no"/>
<DIAttribute name="group_by_run_as_separate_process" value="no"/>
<DIAttribute name="join_run_as_separate_process" value="no"/>
<DIAttribute name="order_by_run_as_separate_process" value="no"/>
<DIAttribute name="run_as_separate_process" value="no"/>
</DIAttributes>
</DIQuery>

<DITransformCall typeId="111" name="Table_Comparison" >
<DIInputView name="QRY_FILTER_DUPLICATE"  />
<DISchema name="MEASURETYPE_EXTT" >
</DISchema>
<DIAttributes>
<DIAttribute name="cache_comparison_table" value="no"/>
<DIAttribute name="compare_column1" value="MEASURETYPE_NAME"/>
<DIAttribute name="compare_column2" value="DESCRIPTION"/>
<DIAttribute name="database_datastore" value="SRCSTAGING_DS"/>
<DIAttribute name="detect_all_dup_deletes" value="no"/>
<DIAttribute name="detect_delete" value="no"/>
<DIAttribute name="primary_key_column1" value="SOURCE_NAME"/>
<DIAttribute name="primary_key_column2" value="SRC_PRIMARY_KEY"/>
<DIAttribute name="run_as_separate_process" value="no"/>
<DIAttribute name="source_is_sorted" value="yes"/>
<DIAttribute name="table_name" value="MEASURETYPE_EXTT"/>
<DIAttribute name="table_owner" value="SRCSTAGING_ALIAS"/>
<DIAttribute name="update_cache" value="no"/>
</DIAttributes>
</DITransformCall>
<DITransformCall typeId="111" name="Map_Operation" >
<DIInputView name="MEASURETYPE_EXTT"  />
<DISchema name="Map_Operation_1" >
</DISchema>
<DIAttributes>
<DIAttribute name="delete" value="discard"/>
<DIAttribute name="insert" value="insert"/>
<DIAttribute name="normal" value="discard"/>
<DIAttribute name="update" value="update"/>
</DIAttributes>
</DITransformCall>
<DIQuery typeId="122"  >
<DIUIOptions>
<DIAttribute name="ui_acta_from_schema_0" value="Query_Sort"/>
<DIAttribute name="ui_display_name" value="QRY_MARK_LATEST"/>
</DIUIOptions>
<DISchema name="QRY_MARK_LATEST" >
<DIElement name="MD_BUSINESS_KEY" datatype="VARCHAR" size="100" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="Query_Sort.MD_BUSINESS_KEY"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_BATCH_ID" datatype="DECIMAL" precision="19" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="Query_Sort.MD_BATCH_ID"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_PROCESS_ID" datatype="DECIMAL" precision="19" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="Query_Sort.MD_PROCESS_ID"/>
</DIAttributes>
</DIElement>
<DIElement name="SRC_PRIMARY_KEY" datatype="VARCHAR" size="100" key="true" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="Query_Sort.SRC_PRIMARY_KEY"/>
</DIAttributes>
</DIElement>
<DIElement name="SOURCE_NAME" datatype="VARCHAR" size="60" key="true" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="Query_Sort.SOURCE_NAME"/>
</DIAttributes>
</DIElement>
<DIElement name="SOURCE_MEASURETYPE_NAME" datatype="VARCHAR" size="100" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="Query_Sort.SOURCE_MEASURETYPE_NAME"/>
</DIAttributes>
</DIElement>
<DIElement name="MEASURETYPE_NAME" datatype="VARCHAR" size="100" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="Query_Sort.MEASURETYPE_NAME"/>
</DIAttributes>
</DIElement>
<DIElement name="DESCRIPTION" datatype="VARCHAR" size="1024" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="Query_Sort.DESCRIPTION"/>
</DIAttributes>
</DIElement>
<DIElement name="MARK_GROUP" datatype="INT" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="is_group_changed(Query_Sort.SRC_PRIMARY_KEY, Query_Sort.SOURCE_NAME)"/>
</DIAttributes>
</DIElement>
</DISchema>
<DISelect>
<DIProjection>
<DIExpression isString="true" expr="Query_Sort.MD_BUSINESS_KEY" >
<COLUMN_REFERENCE  qualifier1="Query_Sort" column="MD_BUSINESS_KEY" />
</DIExpression>
<DIExpression isString="true" expr="Query_Sort.MD_BATCH_ID" >
<COLUMN_REFERENCE  qualifier1="Query_Sort" column="MD_BATCH_ID" />
</DIExpression>
<DIExpression isString="true" expr="Query_Sort.MD_PROCESS_ID" >
<COLUMN_REFERENCE  qualifier1="Query_Sort" column="MD_PROCESS_ID" />
</DIExpression>
<DIExpression isString="true" expr="Query_Sort.SRC_PRIMARY_KEY" >
<COLUMN_REFERENCE  qualifier1="Query_Sort" column="SRC_PRIMARY_KEY" />
</DIExpression>
<DIExpression isString="true" expr="Query_Sort.SOURCE_NAME" >
<COLUMN_REFERENCE  qualifier1="Query_Sort" column="SOURCE_NAME" />
</DIExpression>
<DIExpression isString="true" expr="Query_Sort.SOURCE_MEASURETYPE_NAME" >
<COLUMN_REFERENCE  qualifier1="Query_Sort" column="SOURCE_MEASURETYPE_NAME" />
</DIExpression>
<DIExpression isString="true" expr="Query_Sort.MEASURETYPE_NAME" >
<COLUMN_REFERENCE  qualifier1="Query_Sort" column="MEASURETYPE_NAME" />
</DIExpression>
<DIExpression isString="true" expr="Query_Sort.DESCRIPTION" >
<COLUMN_REFERENCE  qualifier1="Query_Sort" column="DESCRIPTION" />
</DIExpression>
<DIExpression isString="true" expr="is_group_changed(Query_Sort.SRC_PRIMARY_KEY, Query_Sort.SOURCE_NAME)" >
<FUNCTION_CALL name="is_group_changed"  type="DI" >
<COLUMN_REFERENCE  qualifier1="Query_Sort" column="SRC_PRIMARY_KEY" />
<COLUMN_REFERENCE  qualifier1="Query_Sort" column="SOURCE_NAME" />
</FUNCTION_CALL>
</DIExpression>
</DIProjection>
<DIFrom>
<DITableSpec name="Query_Sort" />
</DIFrom>
</DISelect>
<DIAttributes>
<DIAttribute name="distinct_run_as_separate_process" value="no"/>
<DIAttribute name="group_by_run_as_separate_process" value="no"/>
<DIAttribute name="join_run_as_separate_process" value="no"/>
<DIAttribute name="order_by_run_as_separate_process" value="no"/>
<DIAttribute name="run_as_separate_process" value="no"/>
</DIAttributes>
</DIQuery>

<DIQuery typeId="122"  >
<DIUIOptions>
<DIAttribute name="ui_acta_from_schema_0" value="QRY_MARK_LATEST"/>
<DIAttribute name="ui_display_name" value="QRY_FILTER_DUPLICATE"/>
<DIAttribute name="ui_where_text" value="QRY_MARK_LATEST.MARK_GROUP=1"/>
</DIUIOptions>
<DISchema name="QRY_FILTER_DUPLICATE" >
<DIElement name="MD_BUSINESS_KEY" datatype="VARCHAR" size="100" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="QRY_MARK_LATEST.MD_BUSINESS_KEY"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_BATCH_ID" datatype="DECIMAL" precision="19" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="QRY_MARK_LATEST.MD_BATCH_ID"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_PROCESS_ID" datatype="DECIMAL" precision="19" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="QRY_MARK_LATEST.MD_PROCESS_ID"/>
</DIAttributes>
</DIElement>
<DIElement name="SRC_PRIMARY_KEY" datatype="VARCHAR" size="100" key="true" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="QRY_MARK_LATEST.SRC_PRIMARY_KEY"/>
</DIAttributes>
</DIElement>
<DIElement name="SOURCE_NAME" datatype="VARCHAR" size="60" key="true" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="QRY_MARK_LATEST.SOURCE_NAME"/>
</DIAttributes>
</DIElement>
<DIElement name="SOURCE_MEASURETYPE_NAME" datatype="VARCHAR" size="100" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="QRY_MARK_LATEST.SOURCE_MEASURETYPE_NAME"/>
</DIAttributes>
</DIElement>
<DIElement name="MEASURETYPE_NAME" datatype="VARCHAR" size="100" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="QRY_MARK_LATEST.MEASURETYPE_NAME"/>
</DIAttributes>
</DIElement>
<DIElement name="DESCRIPTION" datatype="VARCHAR" size="1024" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="QRY_MARK_LATEST.DESCRIPTION"/>
</DIAttributes>
</DIElement>
</DISchema>
<DISelect>
<DIProjection>
<DIExpression isString="true" expr="QRY_MARK_LATEST.MD_BUSINESS_KEY" >
<COLUMN_REFERENCE  qualifier1="QRY_MARK_LATEST" column="MD_BUSINESS_KEY" />
</DIExpression>
<DIExpression isString="true" expr="QRY_MARK_LATEST.MD_BATCH_ID" >
<COLUMN_REFERENCE  qualifier1="QRY_MARK_LATEST" column="MD_BATCH_ID" />
</DIExpression>
<DIExpression isString="true" expr="QRY_MARK_LATEST.MD_PROCESS_ID" >
<COLUMN_REFERENCE  qualifier1="QRY_MARK_LATEST" column="MD_PROCESS_ID" />
</DIExpression>
<DIExpression isString="true" expr="QRY_MARK_LATEST.SRC_PRIMARY_KEY" >
<COLUMN_REFERENCE  qualifier1="QRY_MARK_LATEST" column="SRC_PRIMARY_KEY" />
</DIExpression>
<DIExpression isString="true" expr="QRY_MARK_LATEST.SOURCE_NAME" >
<COLUMN_REFERENCE  qualifier1="QRY_MARK_LATEST" column="SOURCE_NAME" />
</DIExpression>
<DIExpression isString="true" expr="QRY_MARK_LATEST.SOURCE_MEASURETYPE_NAME" >
<COLUMN_REFERENCE  qualifier1="QRY_MARK_LATEST" column="SOURCE_MEASURETYPE_NAME" />
</DIExpression>
<DIExpression isString="true" expr="QRY_MARK_LATEST.MEASURETYPE_NAME" >
<COLUMN_REFERENCE  qualifier1="QRY_MARK_LATEST" column="MEASURETYPE_NAME" />
</DIExpression>
<DIExpression isString="true" expr="QRY_MARK_LATEST.DESCRIPTION" >
<COLUMN_REFERENCE  qualifier1="QRY_MARK_LATEST" column="DESCRIPTION" />
</DIExpression>
</DIProjection>
<DIFrom>
<DITableSpec name="QRY_MARK_LATEST" />
</DIFrom>
<DIWhere>
<DIExpression isString="true" expr="(QRY_MARK_LATEST.MARK_GROUP = 1)" >
<LOGICAL_OP op="EQ">
<COLUMN_REFERENCE  qualifier1="QRY_MARK_LATEST" column="MARK_GROUP" />
<CONSTANT value="1" datatype="INT" />
</LOGICAL_OP>
</DIExpression>
</DIWhere>
<DIOrderBys>
<DIOrderBy direction="ASC">
<DIExpression isString="true" expr="QRY_MARK_LATEST.SOURCE_NAME" >
<COLUMN_REFERENCE  qualifier1="QRY_MARK_LATEST" column="SOURCE_NAME" />
</DIExpression>
</DIOrderBy>
<DIOrderBy direction="ASC">
<DIExpression isString="true" expr="QRY_MARK_LATEST.SRC_PRIMARY_KEY" >
<COLUMN_REFERENCE  qualifier1="QRY_MARK_LATEST" column="SRC_PRIMARY_KEY" />
</DIExpression>
</DIOrderBy>
</DIOrderBys>
</DISelect>
<DIAttributes>
<DIAttribute name="distinct_run_as_separate_process" value="no"/>
<DIAttribute name="group_by_run_as_separate_process" value="no"/>
<DIAttribute name="join_run_as_separate_process" value="no"/>
<DIAttribute name="order_by_run_as_separate_process" value="no"/>
<DIAttribute name="run_as_separate_process" value="no"/>
</DIAttributes>
</DIQuery>

</DITransforms>
<DIAttributes>
<DIAttribute name="Cache_type" value="pageable_cache"/>
<DIAttribute name="Parallelism_degree" value="0"/>
<DIAttribute name="allows_both_input_and_output" value="yes"/>
<DIAttribute name="run_once" value="no"/>
<DIAttribute name="use_dataflow_links" value="no"/>
<DIAttribute name="use_datastore_links" value="yes"/>
<DIAttribute name="validation_xform_exists" value="no"/>
<DIAttribute name="validation_xform_stats" value="no"/>
</DIAttributes>
</DIDataflow>
<DIWorkflow name="STATUS_EXTERNAL_SOURCE_EXTRACT_FF_WF" typeId="2" >
<DIProperties>
<DIAttribute name="Description" value="This Workflow houses the extraction process into a flat file for the AMRIGHTSUSESCOUNT data.&#xA;&#xA;The workflow {Source Table}_FF_WF is the workflow responsible for extracting data from the source table {Source Table} and writing it to the target {Source Table}_FF.  The workflow will be composed of the following objects:&#xA;•&#x9;PM_{Source Table}_TRY – The beginning of the TRY/CATCH block in Data Integrator&#xA;•&#x9;PM_{Source Table}_START_SC – The script that calls the custom function that initiates the metadata tracking for the workflow.&#xA;•&#x9;{Source Table}_FF_DF – The dataflow that extracts the data from the source system.&#xA;•&#x9;{Source Table}_FF_END_SC – The script that calls the custom function that closes the metadata for the workflow.&#xA;•&#x9;{Source Table}_FF_CATCH – The end of the TRY/CATCH block.  It contains the script that calls the custom function which writes metadata if there is a failure."/>
</DIProperties>
<DIVariables>
<DIElement paramType="LOCAL" name="$L_Dynamic_File_Name" datatype="VARCHAR" size="100" >
</DIElement>
<DIElement paramType="LOCAL" name="$L_SOURCE_SYS" datatype="VARCHAR" size="30" >
</DIElement>
<DIElement paramType="LOCAL" name="$L_SOURCE_TABLE" datatype="VARCHAR" size="30" >
</DIElement>
<DIElement paramType="LOCAL" name="$L_Dynamic_File_Location" datatype="VARCHAR" size="100" >
</DIElement>
<DIElement paramType="LOCAL" name="$L_IDENTIFIER" datatype="VARCHAR" size="100" >
</DIElement>
<DIElement paramType="LOCAL" name="$L_EXTRACT_BEGIN_DATE" datatype="DATETIME" >
</DIElement>
<DIElement paramType="LOCAL" name="$L_EXTRACT_END_DATE" datatype="DATETIME" >
</DIElement>
</DIVariables>
<DISteps>
<DITryStep typeId="13" >
<DIUIOptions>
<DIAttribute name="AutoLayout" value="yes"/>
<DIAttribute name="ObjectDesc" value="the Try of the Try / Catch Block"/>
<DIAttribute name="ui_display_name" value="STATUS_EXTERNAL_EXTRACT_FF_TRY"/>
</DIUIOptions>
<DISteps>
<DIScript>
<DIUIOptions>
<DIAttribute name="ObjectDesc" value="The workflow script object {Source Table}_FF_START_SC.  This script calls the custom function STARTWF_FN.  This script opens the metadata records that are part of this process.  The script will also be used to populate the local workflow variables.  The script body will contain:&#xA;&#xA;Script Body&#x9;&#xA;STARTWF_FN('{Source Sys}', '{Source Table}_FF');&#xA;$FLAT_FILE_NAME_LV = ‘{Source Table}_FF’||$ETL_BATCH_ID_GV||.txt&#xA;$AUDIT_FILE_NAME_LV = ‘{Source Table}_AUDIT’||$ETL_BATCH_ID_GV||.txt"/>
<DIAttribute name="ui_display_name" value="STATUS_EXTERNAL_EXTRACT_FF_START_SC"/>
<DIAttribute name="ui_script_text" value="# ---------------------&#xD;&#xA;#-- ABC ---&#xD;&#xA;$L_IDENTIFIER = workflow_name();&#xD;&#xA;ABC_STARTWF_FN($L_IDENTIFIER, $G_PROCESS_ID);&#xD;&#xA;&#xD;&#xA;&#xD;&#xA;&#xD;&#xA;&#xD;&#xA;&#xD;&#xA;&#xD;&#xA;&#xD;&#xA;&#xD;&#xA;&#xD;&#xA;&#xD;&#xA;"/>
</DIUIOptions>
<DIAssignmentStep typeId="12" variable="$L_IDENTIFIER" >
<DIExpression isString="true" expr="workflow_name()" >
<FUNCTION_CALL name="workflow_name"  type="DI" />
</DIExpression>
</DIAssignmentStep>
<DIFunctionCallStep typeId="23" >
<DIExpression isString="true" expr="abc_startwf_fn($L_IDENTIFIER, $G_PROCESS_ID)" >
<FUNCTION_CALL name="abc_startwf_fn"  type="DI" >
<VARIABLE_REFERENCE name="$L_IDENTIFIER" />
<VARIABLE_REFERENCE name="$G_PROCESS_ID" />
</FUNCTION_CALL>
</DIExpression>
</DIFunctionCallStep>
</DIScript>
<DICallStep typeId="1"  calledObjectType="Dataflow" name="STATUS_EXTERNAL_SOURCE_EXTRACT_FF_DF" >
<DIUIOptions>
<DIAttribute name="ParmDefaulted_01" value="FALSE"/>
<DIAttribute name="ParmDefaulted_02" value="FALSE"/>
<DIAttribute name="ParmDefaulted_03" value="FALSE"/>
<DIAttribute name="ParmDefaulted_04" value="FALSE"/>
</DIUIOptions>
<DIParameterValues>
<DIExpression isString="true" expr="$L_Dynamic_File_Name" >
<VARIABLE_REFERENCE name="$L_Dynamic_File_Name" />
</DIExpression>
<DIExpression isString="true" expr="$L_Dynamic_File_Location" >
<VARIABLE_REFERENCE name="$L_Dynamic_File_Location" />
</DIExpression>
<DIExpression isString="true" expr="$L_EXTRACT_BEGIN_DATE" >
<VARIABLE_REFERENCE name="$L_EXTRACT_BEGIN_DATE" />
</DIExpression>
<DIExpression isString="true" expr="$L_EXTRACT_END_DATE" >
<VARIABLE_REFERENCE name="$L_EXTRACT_END_DATE" />
</DIExpression>
</DIParameterValues>
</DICallStep>
<DIScript>
<DIUIOptions>
<DIAttribute name="ObjectDesc" value="The workflow script object {Source Table}_FF_END_SC.  This script calls the custom function ENDWF_FN.  This script closes the metadata records that are part of this process.  The script body will contain:&#xA;&#xA;Script Body&#x9;&#xA;ENDWF_FN('{Source Sys}', '{Source Table}_FF')"/>
<DIAttribute name="ui_display_name" value="STATUS_EXTERNAL_EXTRACT_FF_END_SC"/>
<DIAttribute name="ui_script_text" value="# this script has been generated from template SubExtWfExitScript &#xD;&#xA;# Template version V1.0&#xD;&#xA;# ---------------------&#xD;&#xA;#--- ABC ---&#xD;&#xA;ABC_ENDWF_FN($L_IDENTIFIER, $G_PROCESS_ID);&#xD;&#xA;#---- END ABC ----&#xD;&#xA;&#xD;&#xA;if($G_TRACE_MODE = 1)&#xD;&#xA;Begin&#xD;&#xA;print(' ');&#xD;&#xA;print(' ');&#xD;&#xA;print('The Workfolw ' || workflow_name() || ' has completed running in Debug mode.');&#xD;&#xA;print(' ');&#xD;&#xA;print(' ');&#xD;&#xA;END"/>
</DIUIOptions>
<DIFunctionCallStep typeId="23" >
<DIExpression isString="true" expr="abc_endwf_fn($L_IDENTIFIER, $G_PROCESS_ID)" >
<FUNCTION_CALL name="abc_endwf_fn"  type="DI" >
<VARIABLE_REFERENCE name="$L_IDENTIFIER" />
<VARIABLE_REFERENCE name="$G_PROCESS_ID" />
</FUNCTION_CALL>
</DIExpression>
</DIFunctionCallStep>
<DIIfStep typeId="2" >
<DIExpression isString="true" expr="($G_TRACE_MODE = 1)" >
<LOGICAL_OP op="EQ">
<VARIABLE_REFERENCE name="$G_TRACE_MODE" />
<CONSTANT value="1" datatype="INT" />
</LOGICAL_OP>
</DIExpression>
<DIIf>
<DIFunctionCallStep typeId="23" >
<DIExpression isString="true" expr="print(' ')" >
<FUNCTION_CALL name="print"  type="DI" >
<CONSTANT value=" " datatype="VARCHAR" size="1" />
</FUNCTION_CALL>
</DIExpression>
</DIFunctionCallStep>
<DIFunctionCallStep typeId="23" >
<DIExpression isString="true" expr="print(' ')" >
<FUNCTION_CALL name="print"  type="DI" >
<CONSTANT value=" " datatype="VARCHAR" size="1" />
</FUNCTION_CALL>
</DIExpression>
</DIFunctionCallStep>
<DIFunctionCallStep typeId="23" >
<DIExpression isString="true" expr="print((('The Workfolw ' || workflow_name()) || ' has completed running in Debug mode.'))" >
<FUNCTION_CALL name="print"  type="DI" >
<CONCAT>
<CONCAT>
<CONSTANT value="The Workfolw " datatype="VARCHAR" size="13" />
<FUNCTION_CALL name="workflow_name"  type="DI" />
</CONCAT>
<CONSTANT value=" has completed running in Debug mode." datatype="VARCHAR" size="37" />
</CONCAT>
</FUNCTION_CALL>
</DIExpression>
</DIFunctionCallStep>
<DIFunctionCallStep typeId="23" >
<DIExpression isString="true" expr="print(' ')" >
<FUNCTION_CALL name="print"  type="DI" >
<CONSTANT value=" " datatype="VARCHAR" size="1" />
</FUNCTION_CALL>
</DIExpression>
</DIFunctionCallStep>
<DIFunctionCallStep typeId="23" >
<DIExpression isString="true" expr="print(' ')" >
<FUNCTION_CALL name="print"  type="DI" >
<CONSTANT value=" " datatype="VARCHAR" size="1" />
</FUNCTION_CALL>
</DIExpression>
</DIFunctionCallStep>
</DIIf>
<DIElse>
</DIElse>
</DIIfStep>
</DIScript>
</DISteps>
<DICatch typeId="20" errorCode="210101" >
<DIUIOptions>
<DIAttribute name="AutoLayout" value="yes"/>
<DIAttribute name="ObjectDesc" value="The workflow catch object {Source Table}_FF_CATCH is the end of the TRY/CATCH block in BO DS.  This catch block will contain the script {Source Table}_FF_FAIL_SC.  This script will call the custom function that is used to write the metadata for failed jobs.  The script will contain the following call.&#xA;&#xA;Script Body&#x9;FAILWF_FN('{Source Sys}', '{Source Table}_FF')"/>
<DIAttribute name="ui_display_name" value="STATUS_EXTERNAL_EXTRACT_FF_CATCH"/>
</DIUIOptions>
<DISteps>
<DIScript>
<DIUIOptions>
<DIAttribute name="ui_display_name" value="STATUS_EXTERNAL_EXTRACT_FF_FAIL_SC"/>
<DIAttribute name="ui_script_text" value="#ABC - CALL FUNCTION TO TRACK END OF WORKFLOW&#xD;&#xA;ABC_FAILWF_FN(workflow_name(), $G_PROCESS_ID, 'Error: \[' || error_number() || '\] ' || error_message());&#xD;&#xA;&#xD;&#xA;#----&#xD;&#xA;if( $G_TRACE_MODE = 1)&#xD;&#xA;Begin&#xD;&#xA;print(' ');&#xD;&#xA;print(' ');&#xD;&#xA;print('Message from the STATUS_EXTERNAL_EXTRACT_FF_CATCH Block Script:');&#xD;&#xA;print('The Workflow ' || workflow_name() || ' has failed to run.');&#xD;&#xA;print(' ');&#xD;&#xA;print(' ');&#xD;&#xA;End"/>
</DIUIOptions>
<DIFunctionCallStep typeId="23" >
<DIExpression isString="true" expr="abc_failwf_fn(workflow_name(), $G_PROCESS_ID, ((('Error: \\[' || error_number()) || '\\] ') || error_message()))" >
<FUNCTION_CALL name="abc_failwf_fn"  type="DI" >
<FUNCTION_CALL name="workflow_name"  type="DI" />
<VARIABLE_REFERENCE name="$G_PROCESS_ID" />
<CONCAT>
<CONCAT>
<CONCAT>
<CONSTANT value="Error: \[" datatype="VARCHAR" size="9" />
<FUNCTION_CALL name="error_number"  type="DI" />
</CONCAT>
<CONSTANT value="\] " datatype="VARCHAR" size="3" />
</CONCAT>
<FUNCTION_CALL name="error_message"  type="DI" />
</CONCAT>
</FUNCTION_CALL>
</DIExpression>
</DIFunctionCallStep>
<DIIfStep typeId="2" >
<DIExpression isString="true" expr="($G_TRACE_MODE = 1)" >
<LOGICAL_OP op="EQ">
<VARIABLE_REFERENCE name="$G_TRACE_MODE" />
<CONSTANT value="1" datatype="INT" />
</LOGICAL_OP>
</DIExpression>
<DIIf>
<DIFunctionCallStep typeId="23" >
<DIExpression isString="true" expr="print(' ')" >
<FUNCTION_CALL name="print"  type="DI" >
<CONSTANT value=" " datatype="VARCHAR" size="1" />
</FUNCTION_CALL>
</DIExpression>
</DIFunctionCallStep>
<DIFunctionCallStep typeId="23" >
<DIExpression isString="true" expr="print(' ')" >
<FUNCTION_CALL name="print"  type="DI" >
<CONSTANT value=" " datatype="VARCHAR" size="1" />
</FUNCTION_CALL>
</DIExpression>
</DIFunctionCallStep>
<DIFunctionCallStep typeId="23" >
<DIExpression isString="true" expr="print('Message from the STATUS_EXTERNAL_EXTRACT_FF_CATCH Block Script:')" >
<FUNCTION_CALL name="print"  type="DI" >
<CONSTANT value="Message from the STATUS_EXTERNAL_EXTRACT_FF_CATCH Block Script:" datatype="VARCHAR" size="63" />
</FUNCTION_CALL>
</DIExpression>
</DIFunctionCallStep>
<DIFunctionCallStep typeId="23" >
<DIExpression isString="true" expr="print((('The Workflow ' || workflow_name()) || ' has failed to run.'))" >
<FUNCTION_CALL name="print"  type="DI" >
<CONCAT>
<CONCAT>
<CONSTANT value="The Workflow " datatype="VARCHAR" size="13" />
<FUNCTION_CALL name="workflow_name"  type="DI" />
</CONCAT>
<CONSTANT value=" has failed to run." datatype="VARCHAR" size="19" />
</CONCAT>
</FUNCTION_CALL>
</DIExpression>
</DIFunctionCallStep>
<DIFunctionCallStep typeId="23" >
<DIExpression isString="true" expr="print(' ')" >
<FUNCTION_CALL name="print"  type="DI" >
<CONSTANT value=" " datatype="VARCHAR" size="1" />
</FUNCTION_CALL>
</DIExpression>
</DIFunctionCallStep>
<DIFunctionCallStep typeId="23" >
<DIExpression isString="true" expr="print(' ')" >
<FUNCTION_CALL name="print"  type="DI" >
<CONSTANT value=" " datatype="VARCHAR" size="1" />
</FUNCTION_CALL>
</DIExpression>
</DIFunctionCallStep>
</DIIf>
<DIElse>
</DIElse>
</DIIfStep>
</DIScript>
</DISteps>
</DICatch>
</DITryStep>
</DISteps>
<DIAttributes>
<DIAttribute name="run_once" value="no"/>
<DIAttribute name="unit_of_recovery" value="no"/>
</DIAttributes>
</DIWorkflow>
<DIDataflow name="STATUS_EXTERNAL_SOURCE_EXTRACT_FF_DF" typeId="1" >
<DIUIOptions>
<DIAttribute name="AutoLayout" value="yes"/>
</DIUIOptions>
<DIProperties>
<DIAttribute name="Description" value="The dataflow for extraction sources data from the defined source table.  Data is pulled from the source table based on the source tables LASTMODDATE value.  All data that was inserted or updated after a specific date will be loaded into the target file.  &#xA;The file that is created by the process will be a delimited file.  The delimiter for this file is |^|.  The dataflow not only loads the target file it also writes an audit file.  The audit file contains the source count and the target count based on the specific where clause.  This file will be used by an ABC audit process outside of the ETL process."/>
</DIProperties>
<DIParameters>
<DIElement paramType="IN" name="$P_Dynamic_File_Name" datatype="VARCHAR" size="100" >
</DIElement>
<DIElement paramType="IN" name="$P_Dynamic_File_Location" datatype="VARCHAR" size="100" >
</DIElement>
<DIElement paramType="IN" name="$P_EXTRACT_BEGIN_DATE" datatype="DATETIME" >
</DIElement>
<DIElement paramType="IN" name="$P_EXTRACT_END_DATE" datatype="DATETIME" >
</DIElement>
</DIParameters>
<DITransforms>
<DIExcelSource typeID="130" datastoreName="STATUS_EXTN_SOURCE_XLS" name="STATUS_EXTN_SOURCE_XLS_1" >
<DIOutputView name="STATUS_EXTN_SOURCE_XLS_1"  />
<DIAttributes>
<DIAttribute name="MSExcel_capture_data_conversion" value="no"/>
<DIAttribute name="cache" value="no"/>
<DIAttribute name="connection_port" value="no"/>
<DIAttribute name="reader_filename_col" value="DI_FILENAME"/>
<DIAttribute name="reader_filename_col_size" value="100"/>
<DIAttribute name="reader_filename_only" value="yes"/>
<DIAttribute name="reader_include_filename" value="no"/>
<DIAttribute name="table_weight" value="0"/>
</DIAttributes>
</DIExcelSource>

<DIDatabaseTableTarget typeID="11" bulkLoader="false" datastoreName="SRCSTAGING_DS" ownerName="SRCSTAGING_ALIAS" tableName="STATUS_EXTT" >
<DIInputView name="Map_Operation"  />
<DIAttributes>
<DIAttribute name="LDRLiveLoad" value="no"/>
<DIAttribute name="Table_Type" value="TABLE"/>
<DIAttribute name="connection_port" value="no"/>
<DIAttribute name="ldr_configuration_enabled" value="yes"/>
<DIAttribute name="ldr_configurations" hasNestedXMLTree ="true">
<LDRConfigurations>
<LDRConfiguration database_type="Microsoft_SQL_Server" database_version="Microsoft SQL Server 2005">
<auto_correct_using_merge>Yes</auto_correct_using_merge>
<bulk_ldr_all_rows/>
<bulk_ldr_max_errors/>
<bulk_ldr_rows_per_commit/>
<enable_partitioning>no</enable_partitioning>
<ignore_column_case>yes</ignore_column_case>
<ignore_columns_null>no</ignore_columns_null>
<ignore_columns_value/>
<loader_auto_correct>yes</loader_auto_correct>
<loader_bulk_load>0</loader_bulk_load>
<loader_compare_column>compare_by_name</loader_compare_column>
<loader_delete_map/>
<loader_drop_and_create_table>no</loader_drop_and_create_table>
<loader_insert_map/>
<loader_load_choice>append</loader_load_choice>
<loader_num_parallel_loaders>1</loader_num_parallel_loaders>
<loader_overflow_file>SRCSTAGING_DS_SRCSTAGING_ALIAS_STATUS_EXTT.txt</loader_overflow_file>
<loader_post_load1/>
<loader_pre_load1/>
<loader_quote_names>0</loader_quote_names>
<loader_transactional>no</loader_transactional>
<loader_transactional_order>0</loader_transactional_order>
<loader_update_key_columns>no</loader_update_key_columns>
<loader_update_map/>
<loader_use_user_defined_keys>no</loader_use_user_defined_keys>
<loader_xact_size>1000</loader_xact_size>
<mssql_bulk_ldr_mode>truncate</mssql_bulk_ldr_mode>
<mssql_bulk_ldr_packet_size>4</mssql_bulk_ldr_packet_size>
<overflow_file_format>Write data</overflow_file_format>
<overriding_substitution_parameter_for_tablename/>
<use_overflow_file>no</use_overflow_file>
<use_unicode_varchar>no</use_unicode_varchar>
<sql_text/>
</LDRConfiguration>
</LDRConfigurations>
</DIAttribute>
<DIAttribute name="loader_template_table" value="no"/>
<DIAttribute name="name" value="SRCSTAGING_DS"/>
<DIAttribute name="use_unicode_varchar" value="no"/>
</DIAttributes>
</DIDatabaseTableTarget>

<DIQuery typeId="122"  >
<DIUIOptions>
<DIAttribute name="ui_acta_from_schema_0" value="STATUS_EXTN_SOURCE_XLS_1"/>
<DIAttribute name="ui_display_name" value="Query_LOAD"/>
</DIUIOptions>
<DISchema name="Query_LOAD" >
<DIElement name="MD_BUSINESS_KEY" datatype="VARCHAR" size="100" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="lower(STATUS_EXTN_SOURCE_XLS_1.TARGET_STATUS_NAME)"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_BATCH_ID" datatype="DECIMAL" precision="19" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="$G_BATCH_ID"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_PROCESS_ID" datatype="DECIMAL" precision="19" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="$G_PROCESS_ID"/>
</DIAttributes>
</DIElement>
<DIElement name="SRC_PRIMARY_KEY" datatype="VARCHAR" size="100" key="true" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="STATUS_EXTN_SOURCE_XLS_1.SOURCE_PRIMARYKEY"/>
</DIAttributes>
</DIElement>
<DIElement name="SOURCE_NAME" datatype="VARCHAR" size="60" key="true" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="STATUS_EXTN_SOURCE_XLS_1.SOURCE_NAME"/>
</DIAttributes>
</DIElement>
<DIElement name="SOURCE_STATUS_NAME" datatype="VARCHAR" size="100" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="STATUS_EXTN_SOURCE_XLS_1.SOURCE_STATUS_NAME"/>
</DIAttributes>
</DIElement>
<DIElement name="CODE" datatype="DECIMAL" precision="16" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="STATUS_EXTN_SOURCE_XLS_1.TARGET_STATUS_CODE"/>
</DIAttributes>
</DIElement>
<DIElement name="DESCRIPTION" datatype="VARCHAR" size="1024" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="STATUS_EXTN_SOURCE_XLS_1.DESCRIPTION"/>
</DIAttributes>
</DIElement>
<DIElement name="STATUS_NAME" datatype="VARCHAR" size="100" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="lower(STATUS_EXTN_SOURCE_XLS_1.TARGET_STATUS_NAME)"/>
</DIAttributes>
</DIElement>
</DISchema>
<DISelect>
<DIProjection>
<DIExpression isString="true" expr="lower(STATUS_EXTN_SOURCE_XLS_1.TARGET_STATUS_NAME)" >
<FUNCTION_CALL name="lower"  type="DI" >
<COLUMN_REFERENCE  qualifier1="STATUS_EXTN_SOURCE_XLS_1" column="TARGET_STATUS_NAME" />
</FUNCTION_CALL>
</DIExpression>
<DIExpression isString="true" expr="$G_BATCH_ID" >
<VARIABLE_REFERENCE name="$G_BATCH_ID" />
</DIExpression>
<DIExpression isString="true" expr="$G_PROCESS_ID" >
<VARIABLE_REFERENCE name="$G_PROCESS_ID" />
</DIExpression>
<DIExpression isString="true" expr="STATUS_EXTN_SOURCE_XLS_1.SOURCE_PRIMARYKEY" >
<COLUMN_REFERENCE  qualifier1="STATUS_EXTN_SOURCE_XLS_1" column="SOURCE_PRIMARYKEY" />
</DIExpression>
<DIExpression isString="true" expr="STATUS_EXTN_SOURCE_XLS_1.SOURCE_NAME" >
<COLUMN_REFERENCE  qualifier1="STATUS_EXTN_SOURCE_XLS_1" column="SOURCE_NAME" />
</DIExpression>
<DIExpression isString="true" expr="STATUS_EXTN_SOURCE_XLS_1.SOURCE_STATUS_NAME" >
<COLUMN_REFERENCE  qualifier1="STATUS_EXTN_SOURCE_XLS_1" column="SOURCE_STATUS_NAME" />
</DIExpression>
<DIExpression isString="true" expr="STATUS_EXTN_SOURCE_XLS_1.TARGET_STATUS_CODE" >
<COLUMN_REFERENCE  qualifier1="STATUS_EXTN_SOURCE_XLS_1" column="TARGET_STATUS_CODE" />
</DIExpression>
<DIExpression isString="true" expr="STATUS_EXTN_SOURCE_XLS_1.DESCRIPTION" >
<COLUMN_REFERENCE  qualifier1="STATUS_EXTN_SOURCE_XLS_1" column="DESCRIPTION" />
</DIExpression>
<DIExpression isString="true" expr="lower(STATUS_EXTN_SOURCE_XLS_1.TARGET_STATUS_NAME)" >
<FUNCTION_CALL name="lower"  type="DI" >
<COLUMN_REFERENCE  qualifier1="STATUS_EXTN_SOURCE_XLS_1" column="TARGET_STATUS_NAME" />
</FUNCTION_CALL>
</DIExpression>
</DIProjection>
<DIFrom>
<DITableSpec name="STATUS_EXTN_SOURCE_XLS_1" />
</DIFrom>
</DISelect>
<DIAttributes>
<DIAttribute name="distinct_run_as_separate_process" value="no"/>
<DIAttribute name="group_by_run_as_separate_process" value="no"/>
<DIAttribute name="join_run_as_separate_process" value="no"/>
<DIAttribute name="order_by_run_as_separate_process" value="no"/>
<DIAttribute name="run_as_separate_process" value="no"/>
</DIAttributes>
</DIQuery>

<DIQuery typeId="122"  >
<DIUIOptions>
<DIAttribute name="ui_acta_from_schema_0" value="Query_LOAD"/>
<DIAttribute name="ui_display_name" value="Query_SORT"/>
</DIUIOptions>
<DISchema name="Query_SORT" >
<DIElement name="MD_BUSINESS_KEY" datatype="VARCHAR" size="100" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="Query_LOAD.MD_BUSINESS_KEY"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_BATCH_ID" datatype="DECIMAL" precision="19" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="Query_LOAD.MD_BATCH_ID"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_PROCESS_ID" datatype="DECIMAL" precision="19" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="Query_LOAD.MD_PROCESS_ID"/>
</DIAttributes>
</DIElement>
<DIElement name="SRC_PRIMARY_KEY" datatype="VARCHAR" size="100" key="true" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="Query_LOAD.SRC_PRIMARY_KEY"/>
</DIAttributes>
</DIElement>
<DIElement name="SOURCE_NAME" datatype="VARCHAR" size="60" key="true" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="Query_LOAD.SOURCE_NAME"/>
</DIAttributes>
</DIElement>
<DIElement name="SOURCE_STATUS_NAME" datatype="VARCHAR" size="100" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="Query_LOAD.SOURCE_STATUS_NAME"/>
</DIAttributes>
</DIElement>
<DIElement name="CODE" datatype="DECIMAL" precision="16" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="Query_LOAD.CODE"/>
</DIAttributes>
</DIElement>
<DIElement name="DESCRIPTION" datatype="VARCHAR" size="1024" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="Query_LOAD.DESCRIPTION"/>
</DIAttributes>
</DIElement>
<DIElement name="STATUS_NAME" datatype="VARCHAR" size="100" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="Query_LOAD.STATUS_NAME"/>
</DIAttributes>
</DIElement>
</DISchema>
<DISelect>
<DIProjection>
<DIExpression isString="true" expr="Query_LOAD.MD_BUSINESS_KEY" >
<COLUMN_REFERENCE  qualifier1="Query_LOAD" column="MD_BUSINESS_KEY" />
</DIExpression>
<DIExpression isString="true" expr="Query_LOAD.MD_BATCH_ID" >
<COLUMN_REFERENCE  qualifier1="Query_LOAD" column="MD_BATCH_ID" />
</DIExpression>
<DIExpression isString="true" expr="Query_LOAD.MD_PROCESS_ID" >
<COLUMN_REFERENCE  qualifier1="Query_LOAD" column="MD_PROCESS_ID" />
</DIExpression>
<DIExpression isString="true" expr="Query_LOAD.SRC_PRIMARY_KEY" >
<COLUMN_REFERENCE  qualifier1="Query_LOAD" column="SRC_PRIMARY_KEY" />
</DIExpression>
<DIExpression isString="true" expr="Query_LOAD.SOURCE_NAME" >
<COLUMN_REFERENCE  qualifier1="Query_LOAD" column="SOURCE_NAME" />
</DIExpression>
<DIExpression isString="true" expr="Query_LOAD.SOURCE_STATUS_NAME" >
<COLUMN_REFERENCE  qualifier1="Query_LOAD" column="SOURCE_STATUS_NAME" />
</DIExpression>
<DIExpression isString="true" expr="Query_LOAD.CODE" >
<COLUMN_REFERENCE  qualifier1="Query_LOAD" column="CODE" />
</DIExpression>
<DIExpression isString="true" expr="Query_LOAD.DESCRIPTION" >
<COLUMN_REFERENCE  qualifier1="Query_LOAD" column="DESCRIPTION" />
</DIExpression>
<DIExpression isString="true" expr="Query_LOAD.STATUS_NAME" >
<COLUMN_REFERENCE  qualifier1="Query_LOAD" column="STATUS_NAME" />
</DIExpression>
</DIProjection>
<DIFrom>
<DITableSpec name="Query_LOAD" />
</DIFrom>
<DIOrderBys>
<DIOrderBy direction="DESC">
<DIExpression isString="true" expr="Query_LOAD.SOURCE_NAME" >
<COLUMN_REFERENCE  qualifier1="Query_LOAD" column="SOURCE_NAME" />
</DIExpression>
</DIOrderBy>
<DIOrderBy direction="DESC">
<DIExpression isString="true" expr="Query_LOAD.SRC_PRIMARY_KEY" >
<COLUMN_REFERENCE  qualifier1="Query_LOAD" column="SRC_PRIMARY_KEY" />
</DIExpression>
</DIOrderBy>
</DIOrderBys>
</DISelect>
<DIAttributes>
<DIAttribute name="distinct_run_as_separate_process" value="no"/>
<DIAttribute name="group_by_run_as_separate_process" value="no"/>
<DIAttribute name="join_run_as_separate_process" value="no"/>
<DIAttribute name="order_by_run_as_separate_process" value="no"/>
<DIAttribute name="run_as_separate_process" value="no"/>
</DIAttributes>
</DIQuery>

<DITransformCall typeId="111" name="Table_Comparison" >
<DIInputView name="QRY_FILTER_DUPLICATE"  />
<DISchema name="STATUS_EXTT" >
</DISchema>
<DIAttributes>
<DIAttribute name="cache_comparison_table" value="no"/>
<DIAttribute name="compare_column1" value="STATUS_NAME"/>
<DIAttribute name="compare_column2" value="DESCRIPTION"/>
<DIAttribute name="compare_column3" value="CODE"/>
<DIAttribute name="database_datastore" value="SRCSTAGING_DS"/>
<DIAttribute name="detect_all_dup_deletes" value="no"/>
<DIAttribute name="detect_delete" value="no"/>
<DIAttribute name="primary_key_column1" value="SOURCE_NAME"/>
<DIAttribute name="primary_key_column2" value="SRC_PRIMARY_KEY"/>
<DIAttribute name="run_as_separate_process" value="no"/>
<DIAttribute name="source_is_sorted" value="no"/>
<DIAttribute name="table_name" value="STATUS_EXTT"/>
<DIAttribute name="table_owner" value="SRCSTAGING_ALIAS"/>
<DIAttribute name="update_cache" value="no"/>
</DIAttributes>
</DITransformCall>
<DITransformCall typeId="111" name="Map_Operation" >
<DIInputView name="STATUS_EXTT"  />
<DISchema name="Map_Operation" >
</DISchema>
<DIAttributes>
<DIAttribute name="delete" value="discard"/>
<DIAttribute name="insert" value="insert"/>
<DIAttribute name="normal" value="discard"/>
<DIAttribute name="update" value="update"/>
</DIAttributes>
</DITransformCall>
<DIQuery typeId="122"  >
<DIUIOptions>
<DIAttribute name="ui_acta_from_schema_0" value="Query_SORT"/>
<DIAttribute name="ui_display_name" value="QRY_MARK_LATEST"/>
</DIUIOptions>
<DISchema name="QRY_MARK_LATEST" >
<DIElement name="MD_BUSINESS_KEY" datatype="VARCHAR" size="100" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="Query_SORT.MD_BUSINESS_KEY"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_BATCH_ID" datatype="DECIMAL" precision="19" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="Query_SORT.MD_BATCH_ID"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_PROCESS_ID" datatype="DECIMAL" precision="19" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="Query_SORT.MD_PROCESS_ID"/>
</DIAttributes>
</DIElement>
<DIElement name="SRC_PRIMARY_KEY" datatype="VARCHAR" size="100" key="true" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="Query_SORT.SRC_PRIMARY_KEY"/>
</DIAttributes>
</DIElement>
<DIElement name="SOURCE_NAME" datatype="VARCHAR" size="60" key="true" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="Query_SORT.SOURCE_NAME"/>
</DIAttributes>
</DIElement>
<DIElement name="SOURCE_STATUS_NAME" datatype="VARCHAR" size="100" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="Query_SORT.SOURCE_STATUS_NAME"/>
</DIAttributes>
</DIElement>
<DIElement name="CODE" datatype="DECIMAL" precision="16" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="Query_SORT.CODE"/>
</DIAttributes>
</DIElement>
<DIElement name="DESCRIPTION" datatype="VARCHAR" size="1024" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="Query_SORT.DESCRIPTION"/>
</DIAttributes>
</DIElement>
<DIElement name="STATUS_NAME" datatype="VARCHAR" size="100" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="Query_SORT.STATUS_NAME"/>
</DIAttributes>
</DIElement>
<DIElement name="MARK_GROUP" datatype="INT" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="is_group_changed(Query_SORT.SRC_PRIMARY_KEY, Query_SORT.SOURCE_NAME)"/>
</DIAttributes>
</DIElement>
</DISchema>
<DISelect>
<DIProjection>
<DIExpression isString="true" expr="Query_SORT.MD_BUSINESS_KEY" >
<COLUMN_REFERENCE  qualifier1="Query_SORT" column="MD_BUSINESS_KEY" />
</DIExpression>
<DIExpression isString="true" expr="Query_SORT.MD_BATCH_ID" >
<COLUMN_REFERENCE  qualifier1="Query_SORT" column="MD_BATCH_ID" />
</DIExpression>
<DIExpression isString="true" expr="Query_SORT.MD_PROCESS_ID" >
<COLUMN_REFERENCE  qualifier1="Query_SORT" column="MD_PROCESS_ID" />
</DIExpression>
<DIExpression isString="true" expr="Query_SORT.SRC_PRIMARY_KEY" >
<COLUMN_REFERENCE  qualifier1="Query_SORT" column="SRC_PRIMARY_KEY" />
</DIExpression>
<DIExpression isString="true" expr="Query_SORT.SOURCE_NAME" >
<COLUMN_REFERENCE  qualifier1="Query_SORT" column="SOURCE_NAME" />
</DIExpression>
<DIExpression isString="true" expr="Query_SORT.SOURCE_STATUS_NAME" >
<COLUMN_REFERENCE  qualifier1="Query_SORT" column="SOURCE_STATUS_NAME" />
</DIExpression>
<DIExpression isString="true" expr="Query_SORT.CODE" >
<COLUMN_REFERENCE  qualifier1="Query_SORT" column="CODE" />
</DIExpression>
<DIExpression isString="true" expr="Query_SORT.DESCRIPTION" >
<COLUMN_REFERENCE  qualifier1="Query_SORT" column="DESCRIPTION" />
</DIExpression>
<DIExpression isString="true" expr="Query_SORT.STATUS_NAME" >
<COLUMN_REFERENCE  qualifier1="Query_SORT" column="STATUS_NAME" />
</DIExpression>
<DIExpression isString="true" expr="is_group_changed(Query_SORT.SRC_PRIMARY_KEY, Query_SORT.SOURCE_NAME)" >
<FUNCTION_CALL name="is_group_changed"  type="DI" >
<COLUMN_REFERENCE  qualifier1="Query_SORT" column="SRC_PRIMARY_KEY" />
<COLUMN_REFERENCE  qualifier1="Query_SORT" column="SOURCE_NAME" />
</FUNCTION_CALL>
</DIExpression>
</DIProjection>
<DIFrom>
<DITableSpec name="Query_SORT" />
</DIFrom>
</DISelect>
<DIAttributes>
<DIAttribute name="distinct_run_as_separate_process" value="no"/>
<DIAttribute name="group_by_run_as_separate_process" value="no"/>
<DIAttribute name="join_run_as_separate_process" value="no"/>
<DIAttribute name="order_by_run_as_separate_process" value="no"/>
<DIAttribute name="run_as_separate_process" value="no"/>
</DIAttributes>
</DIQuery>

<DIQuery typeId="122"  >
<DIUIOptions>
<DIAttribute name="ui_acta_from_schema_0" value="QRY_MARK_LATEST"/>
<DIAttribute name="ui_display_name" value="QRY_FILTER_DUPLICATE"/>
<DIAttribute name="ui_where_text" value="QRY_MARK_LATEST.MARK_GROUP=1"/>
</DIUIOptions>
<DISchema name="QRY_FILTER_DUPLICATE" >
<DIElement name="MD_BUSINESS_KEY" datatype="VARCHAR" size="100" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="QRY_MARK_LATEST.MD_BUSINESS_KEY"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_BATCH_ID" datatype="DECIMAL" precision="19" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="QRY_MARK_LATEST.MD_BATCH_ID"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_PROCESS_ID" datatype="DECIMAL" precision="19" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="QRY_MARK_LATEST.MD_PROCESS_ID"/>
</DIAttributes>
</DIElement>
<DIElement name="SRC_PRIMARY_KEY" datatype="VARCHAR" size="100" key="true" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="QRY_MARK_LATEST.SRC_PRIMARY_KEY"/>
</DIAttributes>
</DIElement>
<DIElement name="SOURCE_NAME" datatype="VARCHAR" size="60" key="true" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="QRY_MARK_LATEST.SOURCE_NAME"/>
</DIAttributes>
</DIElement>
<DIElement name="SOURCE_STATUS_NAME" datatype="VARCHAR" size="100" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="QRY_MARK_LATEST.SOURCE_STATUS_NAME"/>
</DIAttributes>
</DIElement>
<DIElement name="CODE" datatype="DECIMAL" precision="16" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="QRY_MARK_LATEST.CODE"/>
</DIAttributes>
</DIElement>
<DIElement name="DESCRIPTION" datatype="VARCHAR" size="1024" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="QRY_MARK_LATEST.DESCRIPTION"/>
</DIAttributes>
</DIElement>
<DIElement name="STATUS_NAME" datatype="VARCHAR" size="100" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="QRY_MARK_LATEST.STATUS_NAME"/>
</DIAttributes>
</DIElement>
</DISchema>
<DISelect>
<DIProjection>
<DIExpression isString="true" expr="QRY_MARK_LATEST.MD_BUSINESS_KEY" >
<COLUMN_REFERENCE  qualifier1="QRY_MARK_LATEST" column="MD_BUSINESS_KEY" />
</DIExpression>
<DIExpression isString="true" expr="QRY_MARK_LATEST.MD_BATCH_ID" >
<COLUMN_REFERENCE  qualifier1="QRY_MARK_LATEST" column="MD_BATCH_ID" />
</DIExpression>
<DIExpression isString="true" expr="QRY_MARK_LATEST.MD_PROCESS_ID" >
<COLUMN_REFERENCE  qualifier1="QRY_MARK_LATEST" column="MD_PROCESS_ID" />
</DIExpression>
<DIExpression isString="true" expr="QRY_MARK_LATEST.SRC_PRIMARY_KEY" >
<COLUMN_REFERENCE  qualifier1="QRY_MARK_LATEST" column="SRC_PRIMARY_KEY" />
</DIExpression>
<DIExpression isString="true" expr="QRY_MARK_LATEST.SOURCE_NAME" >
<COLUMN_REFERENCE  qualifier1="QRY_MARK_LATEST" column="SOURCE_NAME" />
</DIExpression>
<DIExpression isString="true" expr="QRY_MARK_LATEST.SOURCE_STATUS_NAME" >
<COLUMN_REFERENCE  qualifier1="QRY_MARK_LATEST" column="SOURCE_STATUS_NAME" />
</DIExpression>
<DIExpression isString="true" expr="QRY_MARK_LATEST.CODE" >
<COLUMN_REFERENCE  qualifier1="QRY_MARK_LATEST" column="CODE" />
</DIExpression>
<DIExpression isString="true" expr="QRY_MARK_LATEST.DESCRIPTION" >
<COLUMN_REFERENCE  qualifier1="QRY_MARK_LATEST" column="DESCRIPTION" />
</DIExpression>
<DIExpression isString="true" expr="QRY_MARK_LATEST.STATUS_NAME" >
<COLUMN_REFERENCE  qualifier1="QRY_MARK_LATEST" column="STATUS_NAME" />
</DIExpression>
</DIProjection>
<DIFrom>
<DITableSpec name="QRY_MARK_LATEST" />
</DIFrom>
<DIWhere>
<DIExpression isString="true" expr="(QRY_MARK_LATEST.MARK_GROUP = 1)" >
<LOGICAL_OP op="EQ">
<COLUMN_REFERENCE  qualifier1="QRY_MARK_LATEST" column="MARK_GROUP" />
<CONSTANT value="1" datatype="INT" />
</LOGICAL_OP>
</DIExpression>
</DIWhere>
<DIOrderBys>
<DIOrderBy direction="ASC">
<DIExpression isString="true" expr="QRY_MARK_LATEST.SRC_PRIMARY_KEY" >
<COLUMN_REFERENCE  qualifier1="QRY_MARK_LATEST" column="SRC_PRIMARY_KEY" />
</DIExpression>
</DIOrderBy>
<DIOrderBy direction="ASC">
<DIExpression isString="true" expr="QRY_MARK_LATEST.SOURCE_NAME" >
<COLUMN_REFERENCE  qualifier1="QRY_MARK_LATEST" column="SOURCE_NAME" />
</DIExpression>
</DIOrderBy>
</DIOrderBys>
</DISelect>
<DIAttributes>
<DIAttribute name="distinct_run_as_separate_process" value="no"/>
<DIAttribute name="group_by_run_as_separate_process" value="no"/>
<DIAttribute name="join_run_as_separate_process" value="no"/>
<DIAttribute name="order_by_run_as_separate_process" value="no"/>
<DIAttribute name="run_as_separate_process" value="no"/>
</DIAttributes>
</DIQuery>

</DITransforms>
<DIAttributes>
<DIAttribute name="Audit" hasNestedXMLTree ="true">
<Audit>
<AuditObjects>
</AuditObjects>
<AuditRules>
</AuditRules>
<Notifications>
<RaiseException Enabled="true">
</RaiseException>
<Mail Enabled="false"/>
<Script Enabled="false"/>
</Notifications>
</Audit>
</DIAttribute>
<DIAttribute name="Cache_type" value="pageable_cache"/>
<DIAttribute name="Parallelism_degree" value="0"/>
<DIAttribute name="allows_both_input_and_output" value="yes"/>
<DIAttribute name="run_once" value="no"/>
<DIAttribute name="use_dataflow_links" value="no"/>
<DIAttribute name="use_datastore_links" value="yes"/>
<DIAttribute name="validation_xform_exists" value="no"/>
<DIAttribute name="validation_xform_stats" value="no"/>
</DIAttributes>
</DIDataflow>
<DIWorkflow name="EXTN_CON_CONT_WF" typeId="2" >
<DIUIOptions>
<DIAnnotation name="ANNOTATION_0"><DIAttribute name="ObjectDesc" value="This workflow is a container for the entities concerned by the CON ETL Step for the external files"/>
</DIAnnotation></DIUIOptions>
<DIProperties>
<DIAttribute name="GeneratorTemplate" value="ENTITY_LEVEL_FOR_PRODUCT_CONTAINER_WF (version 0.13.0-SNAPSHOT)"/>
<DIAttribute name="GeneratorVersion" value="v1.0"/>
<DIAttribute name="GenerationDate" value="Fri, 23 Jan 2009 10:49:48"/>
<DIAttribute name="Description" value="This workflow is a container for the entities concerned by the CON ETL Step for the external files. It integrates the following entities:&#xD;&#xA;  - BUDGET (version 1.0)&#xD;&#xA;  - COSTCATEGORY (version 1.0)&#xD;&#xA;  - MEASURETYPE (version 1.0)&#xD;&#xA;  - STATUS (version 1.0)&#xD;&#xA;"/>
</DIProperties>
<DISteps>
<DICallStep typeId="0"  calledObjectType="Workflow" name="BUDGET_CON_WF" >
</DICallStep>
<DICallStep typeId="0"  calledObjectType="Workflow" name="COSTCATEGORY_CON_WF" >
</DICallStep>
<DICallStep typeId="0"  calledObjectType="Workflow" name="MEASURETYPE_CON_WF" >
</DICallStep>
<DICallStep typeId="0"  calledObjectType="Workflow" name="STATUS_CON_WF" >
</DICallStep>
<DICallStep typeId="0"  calledObjectType="Workflow" name="EXTERN_PROGRAM_CON_WF" >
</DICallStep>
</DISteps>
<DIAttributes>
<DIAttribute name="run_once" value="no"/>
<DIAttribute name="unit_of_recovery" value="no"/>
</DIAttributes>
</DIWorkflow>
<DIWorkflow name="BUDGET_CON_WF" typeId="2" >
<DIVariables>
<DIElement paramType="LOCAL" name="$L_IDENTIFIER" datatype="VARCHAR" size="100" >
</DIElement>
<DIElement paramType="LOCAL" name="$L_SOURCE_XREF_ID" datatype="DECIMAL" precision="18" scale="0" >
</DIElement>
<DIElement paramType="LOCAL" name="$L_CONSOLIDATED_XREF_ID" datatype="DECIMAL" precision="18" scale="0" >
</DIElement>
<DIElement paramType="LOCAL" name="$L_SOURCE_ENTITY" datatype="VARCHAR" size="200" >
</DIElement>
<DIElement paramType="LOCAL" name="$L_CONSOLIDATED_NAME" datatype="VARCHAR" size="200" >
</DIElement>
</DIVariables>
<DISteps>
<DITryStep typeId="13" >
<DIUIOptions>
<DIAttribute name="ui_display_name" value="BUDGET_CON_TRY"/>
</DIUIOptions>
<DISteps>
<DIScript>
<DIUIOptions>
<DIAttribute name="ui_display_name" value="BUDGET_CON_START_SC"/>
<DIAttribute name="ui_script_text" value="# CALL FUNCTION TO TRACK START OF WORKFLOW&#xA;$L_IDENTIFIER = workflow_name();&#xA;ABC_STARTWF_FN($L_IDENTIFIER, $G_PROCESS_ID);&#xA;&#xA;&#xA;$L_SOURCE_ENTITY = 'BUDGET';&#xA;GET_SOURCE_XREF_ID_FN($L_SOURCE_ENTITY,$L_SOURCE_XREF_ID);"/>
</DIUIOptions>
<DIAssignmentStep typeId="12" variable="$L_IDENTIFIER" >
<DIExpression isString="true" expr="workflow_name()" >
<FUNCTION_CALL name="workflow_name"  type="DI" />
</DIExpression>
</DIAssignmentStep>
<DIFunctionCallStep typeId="23" >
<DIExpression isString="true" expr="abc_startwf_fn($L_IDENTIFIER, $G_PROCESS_ID)" >
<FUNCTION_CALL name="abc_startwf_fn"  type="DI" >
<VARIABLE_REFERENCE name="$L_IDENTIFIER" />
<VARIABLE_REFERENCE name="$G_PROCESS_ID" />
</FUNCTION_CALL>
</DIExpression>
</DIFunctionCallStep>
<DIAssignmentStep typeId="12" variable="$L_SOURCE_ENTITY" >
<DIExpression isString="true" expr="'BUDGET'" >
<CONSTANT value="BUDGET" datatype="VARCHAR" size="6" />
</DIExpression>
</DIAssignmentStep>
<DIFunctionCallStep typeId="23" >
<DIExpression isString="true" expr="get_source_xref_id_fn($L_SOURCE_ENTITY, $L_SOURCE_XREF_ID)" >
<FUNCTION_CALL name="get_source_xref_id_fn"  type="DI" >
<VARIABLE_REFERENCE name="$L_SOURCE_ENTITY" />
<VARIABLE_REFERENCE name="$L_SOURCE_XREF_ID" />
</FUNCTION_CALL>
</DIExpression>
</DIFunctionCallStep>
</DIScript>
<DICallStep typeId="1"  calledObjectType="Dataflow" name="BUDGET_CON_DF" >
<DIUIOptions>
<DIAttribute name="ParmDefaulted_01" value="FALSE"/>
<DIAttribute name="ParmDefaulted_02" value="FALSE"/>
</DIUIOptions>
<DIParameterValues>
<DIExpression isString="true" expr="$L_SOURCE_XREF_ID" >
<VARIABLE_REFERENCE name="$L_SOURCE_XREF_ID" />
</DIExpression>
<DIExpression isString="true" expr="$L_CONSOLIDATED_XREF_ID" >
<VARIABLE_REFERENCE name="$L_CONSOLIDATED_XREF_ID" />
</DIExpression>
</DIParameterValues>
</DICallStep>
<DIScript>
<DIUIOptions>
<DIAttribute name="ui_display_name" value="BUDGET_CON_END_SC"/>
<DIAttribute name="ui_script_text" value="# CALL FUNCTION TO TRACK END OF WORKFLOW&#xA;ABC_ENDWF_FN($L_IDENTIFIER, $G_PROCESS_ID);"/>
</DIUIOptions>
<DIFunctionCallStep typeId="23" >
<DIExpression isString="true" expr="abc_endwf_fn($L_IDENTIFIER, $G_PROCESS_ID)" >
<FUNCTION_CALL name="abc_endwf_fn"  type="DI" >
<VARIABLE_REFERENCE name="$L_IDENTIFIER" />
<VARIABLE_REFERENCE name="$G_PROCESS_ID" />
</FUNCTION_CALL>
</DIExpression>
</DIFunctionCallStep>
</DIScript>
</DISteps>
<DICatch typeId="20" errorCode="210101" >
<DIUIOptions>
<DIAttribute name="ui_display_name" value="BUDGET_CON_CATCH"/>
</DIUIOptions>
<DISteps>
<DIScript>
<DIUIOptions>
<DIAttribute name="ui_display_name" value="PERIOD_AM_CON_FAIL_SC"/>
<DIAttribute name="ui_script_text" value="# CALL FUNCTION TO TRACK FAIL OF WORKFLOW&#xA;ABC_FAILWF_FN(workflow_name(), $G_PROCESS_ID, 'Error: \[' || error_number() || '\] ' || error_message());"/>
</DIUIOptions>
<DIFunctionCallStep typeId="23" >
<DIExpression isString="true" expr="abc_failwf_fn(workflow_name(), $G_PROCESS_ID, ((('Error: \\[' || error_number()) || '\\] ') || error_message()))" >
<FUNCTION_CALL name="abc_failwf_fn"  type="DI" >
<FUNCTION_CALL name="workflow_name"  type="DI" />
<VARIABLE_REFERENCE name="$G_PROCESS_ID" />
<CONCAT>
<CONCAT>
<CONCAT>
<CONSTANT value="Error: \[" datatype="VARCHAR" size="9" />
<FUNCTION_CALL name="error_number"  type="DI" />
</CONCAT>
<CONSTANT value="\] " datatype="VARCHAR" size="3" />
</CONCAT>
<FUNCTION_CALL name="error_message"  type="DI" />
</CONCAT>
</FUNCTION_CALL>
</DIExpression>
</DIFunctionCallStep>
</DIScript>
</DISteps>
</DICatch>
</DITryStep>
</DISteps>
<DIAttributes>
<DIAttribute name="run_once" value="no"/>
<DIAttribute name="unit_of_recovery" value="no"/>
</DIAttributes>
</DIWorkflow>
<DIDataflow name="BUDGET_CON_DF" typeId="1" >
<DIParameters>
<DIElement paramType="IN" name="$P_SOURCE_XREF_ID" datatype="DECIMAL" precision="18" scale="0" >
</DIElement>
<DIElement paramType="IN" name="$P_CONSOLIDATED_XREF_ID" datatype="DECIMAL" precision="18" scale="0" >
</DIElement>
</DIParameters>
<DITransforms>
<DIDatabaseTableTarget typeID="11" bulkLoader="false" datastoreName="DWSTAGING_DS" ownerName="DWSTAGING_ALIAS" tableName="BUDGET_ENTERPRISE_XREF" >
<DIInputView name="Query"  />
<DIAttributes>
<DIAttribute name="LDRLiveLoad" value="no"/>
<DIAttribute name="Table_Type" value="TABLE"/>
<DIAttribute name="connection_port" value="no"/>
<DIAttribute name="ldr_configuration_enabled" value="yes"/>
<DIAttribute name="ldr_configurations" hasNestedXMLTree ="true">
<LDRConfigurations>
<LDRConfiguration database_type="Microsoft_SQL_Server" database_version="Microsoft SQL Server 2005">
<auto_correct_using_merge>yes</auto_correct_using_merge>
<bulk_ldr_all_rows/>
<bulk_ldr_max_errors/>
<bulk_ldr_rows_per_commit>1000</bulk_ldr_rows_per_commit>
<enable_partitioning>no</enable_partitioning>
<ignore_column_case>yes</ignore_column_case>
<ignore_columns_null>no</ignore_columns_null>
<ignore_columns_value/>
<loader_auto_correct>no</loader_auto_correct>
<loader_bulk_load/>
<loader_compare_column>compare_by_name</loader_compare_column>
<loader_delete_map/>
<loader_drop_and_create_table>yes</loader_drop_and_create_table>
<loader_insert_map/>
<loader_load_choice>append</loader_load_choice>
<loader_num_parallel_loaders>1</loader_num_parallel_loaders>
<loader_overflow_file>overflow_file</loader_overflow_file>
<loader_post_load1/>
<loader_pre_load1/>
<loader_quote_names>0</loader_quote_names>
<loader_transactional>no</loader_transactional>
<loader_transactional_order>0</loader_transactional_order>
<loader_update_key_columns>no</loader_update_key_columns>
<loader_update_map/>
<loader_use_user_defined_keys>no</loader_use_user_defined_keys>
<loader_xact_size>1000</loader_xact_size>
<mssql_bulk_ldr_mode>append</mssql_bulk_ldr_mode>
<mssql_bulk_ldr_packet_size>0</mssql_bulk_ldr_packet_size>
<overflow_file_format>write_data</overflow_file_format>
<overriding_substitution_parameter_for_tablename/>
<use_overflow_file>no</use_overflow_file>
<use_unicode_varchar>no</use_unicode_varchar>
<sql_text/>
</LDRConfiguration>
</LDRConfigurations>
</DIAttribute>
<DIAttribute name="loader_template_table" value="no"/>
<DIAttribute name="name" value="DWSTAGING_DS"/>
<DIAttribute name="use_unicode_varchar" value="no"/>
</DIAttributes>
</DIDatabaseTableTarget>

<DIDatabaseTableSource typeId="22" datastoreName="SRCSTAGING_DS" ownerName="SRCSTAGING_ALIAS" tableName="BUDGET_EXTT_V" >
<DIOutputView name="BUDGET_EXTT_V_1"  />
<DIAttributes>
<DIAttribute name="array_fetch_size" value="1000"/>
<DIAttribute name="cache" value="yes"/>
<DIAttribute name="connection_port" value="no"/>
<DIAttribute name="enable_partitioning" value="no"/>
<DIAttribute name="name" value="SRCSTAGING_DS"/>
<DIAttribute name="package_size" value="0"/>
<DIAttribute name="reader_is_DB2CDC_table" value="no"/>
<DIAttribute name="reader_overflow_file" value="overflow_file"/>
<DIAttribute name="reader_template_table" value="no"/>
<DIAttribute name="reader_use_overflow_file" value="no"/>
<DIAttribute name="reader_use_trex_transaction" value="no"/>
<DIAttribute name="table_weight" value="0"/>
</DIAttributes>
</DIDatabaseTableSource>

<DITransformCall typeId="111" name="Table_Comparison" >
<DIInputView name="QRY_SRT"  />
<DISchema name="BUDGET_CSNP" >
</DISchema>
<DIAttributes>
<DIAttribute name="cache_comparison_table" value="no"/>
<DIAttribute name="compare_column1" value="BUDGET_NAME_ALT"/>
<DIAttribute name="database_datastore" value="DWSTAGING_DS"/>
<DIAttribute name="detect_all_dup_deletes" value="no"/>
<DIAttribute name="detect_delete" value="no"/>
<DIAttribute name="primary_key_column1" value="BUDGET_NAME"/>
<DIAttribute name="run_as_separate_process" value="no"/>
<DIAttribute name="source_is_sorted" value="yes"/>
<DIAttribute name="table_name" value="BUDGET_CSNP"/>
<DIAttribute name="table_owner" value="DWSTAGING_ALIAS"/>
<DIAttribute name="update_cache" value="no"/>
</DIAttributes>
</DITransformCall>
<DITransformCall typeId="111" name="Map_Operation" >
<DIInputView name="BUDGET_CSNP"  />
<DISchema name="Map_Operation" >
</DISchema>
<DIAttributes>
<DIAttribute name="delete" value="discard"/>
<DIAttribute name="insert" value="insert"/>
<DIAttribute name="normal" value="discard"/>
<DIAttribute name="update" value="discard"/>
</DIAttributes>
</DITransformCall>
<DIQuery typeId="122"  >
<DIUIOptions>
<DIAttribute name="ui_acta_from_schema_0" value="Query_2"/>
</DIUIOptions>
<DISchema name="Query" >
<DIElement name="ENTERPRISE_XREF_ID" datatype="DECIMAL" precision="18" scale="0" key="true" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="greatest(5+gen_row_num(),key_generation('DWSTAGING_DS.DWSTAGING_ALIAS.BUDGET_ENTERPRISE_XREF', 'ENTERPRISE_XREF_ID', 1))&#xA; &#xA;"/>
</DIAttributes>
</DIElement>
<DIElement name="ENTERPRISE_KEY" datatype="DECIMAL" precision="18" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="Query_2.MD_ENTERPRISE_KEY"/>
</DIAttributes>
</DIElement>
<DIElement name="SOURCE_INTEGRATION_XREF_ID" datatype="DECIMAL" precision="18" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="$P_SOURCE_XREF_ID&#xA; &#xA;"/>
</DIAttributes>
</DIElement>
<DIElement name="BUSINESS_KEYVALUE" datatype="VARCHAR" size="100" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="Query_2.MD_BUSINESS_KEY&#xA; &#xA;"/>
</DIAttributes>
</DIElement>
<DIElement name="UPDATE_STATUS" datatype="VARCHAR" size="10" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="'INSERT'&#xA; &#xA;"/>
</DIAttributes>
</DIElement>
<DIElement name="CREATEDDATETIME" datatype="DATETIME" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="$G_MODDATE_LOC&#xA; &#xA;"/>
</DIAttributes>
</DIElement>
<DIElement name="MODIFIEDDATETIME" datatype="DATETIME" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="$G_MODDATE_LOC &#xA; &#xA;"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_BATCH_ID" datatype="DECIMAL" precision="19" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="$G_BATCH_ID&#xA; &#xA;"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_PROCESS_ID" datatype="DECIMAL" precision="19" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="$G_PROCESS_ID&#xA; &#xA;"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_CP_ID" datatype="DECIMAL" precision="28" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="0"/>
</DIAttributes>
</DIElement>
</DISchema>
<DISelect>
<DIProjection>
<DIExpression isString="true" expr="greatest((5 + gen_row_num()), key_generation(DWSTAGING_DS.DWSTAGING_ALIAS.BUDGET_ENTERPRISE_XREF, 'ENTERPRISE_XREF_ID', 1) )" >
<FUNCTION_CALL name="greatest"  type="DI" >
<ADD>
<CONSTANT value="5" datatype="INT" />
<FUNCTION_CALL name="gen_row_num"  type="DI" />
</ADD>
<FUNCTION_CALL name="key_generation"  type="DI" tableDatastore="DWSTAGING_DS" tableOwner="DWSTAGING_ALIAS" tableName="BUDGET_ENTERPRISE_XREF" >
<CONSTANT value="ENTERPRISE_XREF_ID" datatype="VARCHAR" size="18" />
<CONSTANT value="1" datatype="INT" />
</FUNCTION_CALL>
</FUNCTION_CALL>
</DIExpression>
<DIExpression isString="true" expr="Query_2.MD_ENTERPRISE_KEY" >
<COLUMN_REFERENCE  qualifier1="Query_2" column="MD_ENTERPRISE_KEY" />
</DIExpression>
<DIExpression isString="true" expr="$P_SOURCE_XREF_ID" >
<VARIABLE_REFERENCE name="$P_SOURCE_XREF_ID" />
</DIExpression>
<DIExpression isString="true" expr="Query_2.MD_BUSINESS_KEY" >
<COLUMN_REFERENCE  qualifier1="Query_2" column="MD_BUSINESS_KEY" />
</DIExpression>
<DIExpression isString="true" expr="'INSERT'" >
<CONSTANT value="INSERT" datatype="VARCHAR" size="6" />
</DIExpression>
<DIExpression isString="true" expr="$G_MODDATE_LOC" >
<VARIABLE_REFERENCE name="$G_MODDATE_LOC" />
</DIExpression>
<DIExpression isString="true" expr="$G_MODDATE_LOC" >
<VARIABLE_REFERENCE name="$G_MODDATE_LOC" />
</DIExpression>
<DIExpression isString="true" expr="$G_BATCH_ID" >
<VARIABLE_REFERENCE name="$G_BATCH_ID" />
</DIExpression>
<DIExpression isString="true" expr="$G_PROCESS_ID" >
<VARIABLE_REFERENCE name="$G_PROCESS_ID" />
</DIExpression>
<DIExpression isString="true" expr="0" >
<CONSTANT value="0" datatype="INT" />
</DIExpression>
</DIProjection>
<DIFrom>
<DITableSpec name="Query_2" />
</DIFrom>
</DISelect>
<DIAttributes>
<DIAttribute name="distinct_run_as_separate_process" value="no"/>
<DIAttribute name="group_by_run_as_separate_process" value="no"/>
<DIAttribute name="join_run_as_separate_process" value="no"/>
<DIAttribute name="order_by_run_as_separate_process" value="no"/>
<DIAttribute name="run_as_separate_process" value="no"/>
</DIAttributes>
</DIQuery>

<DITransformCall typeId="111" name="Map_Operation" >
<DIInputView name="BUDGET_CSNP"  />
<DISchema name="Map_Operation_1" >
</DISchema>
<DIAttributes>
<DIAttribute name="delete" value="discard"/>
<DIAttribute name="insert" value="discard"/>
<DIAttribute name="normal" value="discard"/>
<DIAttribute name="update" value="update"/>
</DIAttributes>
</DITransformCall>
<DIQuery typeId="122"  >
<DIUIOptions>
<DIAttribute name="ui_acta_from_schema_0" value="Map_Operation_1"/>
</DIUIOptions>
<DISchema name="Query_1" >
<DIElement name="MD_BATCH_ID" datatype="DECIMAL" precision="19" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="$G_BATCH_ID"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_PROCESS_ID" datatype="DECIMAL" precision="19" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="$G_PROCESS_ID"/>
</DIAttributes>
</DIElement>
<DIElement name="BUDGET_NAME" datatype="VARCHAR" size="60" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="Map_Operation_1.BUDGET_NAME"/>
</DIAttributes>
</DIElement>
<DIElement name="BUDGET_NAME_ALT" datatype="VARCHAR" size="60" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="Map_Operation_1.BUDGET_NAME_ALT"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_BUSINESS_KEY" datatype="VARCHAR" size="100" key="true" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="Map_Operation_1.MD_BUSINESS_KEY"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_ENTERPRISE_KEY" datatype="DECIMAL" precision="18" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="Map_Operation_1.MD_ENTERPRISE_KEY"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_FLAG" datatype="VARCHAR" size="10" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="$G_FLAG_UPDATE "/>
</DIAttributes>
</DIElement>
</DISchema>
<DISelect>
<DIProjection>
<DIExpression isString="true" expr="$G_BATCH_ID" >
<VARIABLE_REFERENCE name="$G_BATCH_ID" />
</DIExpression>
<DIExpression isString="true" expr="$G_PROCESS_ID" >
<VARIABLE_REFERENCE name="$G_PROCESS_ID" />
</DIExpression>
<DIExpression isString="true" expr="Map_Operation_1.BUDGET_NAME" >
<COLUMN_REFERENCE  qualifier1="Map_Operation_1" column="BUDGET_NAME" />
</DIExpression>
<DIExpression isString="true" expr="Map_Operation_1.BUDGET_NAME_ALT" >
<COLUMN_REFERENCE  qualifier1="Map_Operation_1" column="BUDGET_NAME_ALT" />
</DIExpression>
<DIExpression isString="true" expr="Map_Operation_1.MD_BUSINESS_KEY" >
<COLUMN_REFERENCE  qualifier1="Map_Operation_1" column="MD_BUSINESS_KEY" />
</DIExpression>
<DIExpression isString="true" expr="Map_Operation_1.MD_ENTERPRISE_KEY" >
<COLUMN_REFERENCE  qualifier1="Map_Operation_1" column="MD_ENTERPRISE_KEY" />
</DIExpression>
<DIExpression isString="true" expr="$G_FLAG_UPDATE" >
<VARIABLE_REFERENCE name="$G_FLAG_UPDATE" />
</DIExpression>
</DIProjection>
<DIFrom>
<DITableSpec name="Map_Operation_1" />
</DIFrom>
</DISelect>
<DIAttributes>
<DIAttribute name="distinct_run_as_separate_process" value="no"/>
<DIAttribute name="group_by_run_as_separate_process" value="no"/>
<DIAttribute name="join_run_as_separate_process" value="no"/>
<DIAttribute name="order_by_run_as_separate_process" value="no"/>
<DIAttribute name="run_as_separate_process" value="no"/>
</DIAttributes>
</DIQuery>

<DIQuery typeId="122"  >
<DIUIOptions>
<DIAttribute name="ui_acta_from_schema_0" value="Map_Operation"/>
</DIUIOptions>
<DISchema name="Query_2" >
<DIElement name="MD_BATCH_ID" datatype="DECIMAL" precision="19" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="$G_BATCH_ID "/>
</DIAttributes>
</DIElement>
<DIElement name="MD_PROCESS_ID" datatype="DECIMAL" precision="19" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="$G_PROCESS_ID"/>
</DIAttributes>
</DIElement>
<DIElement name="BUDGET_NAME" datatype="VARCHAR" size="60" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="Map_Operation.BUDGET_NAME"/>
</DIAttributes>
</DIElement>
<DIElement name="BUDGET_NAME_ALT" datatype="VARCHAR" size="60" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="Map_Operation.BUDGET_NAME_ALT"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_BUSINESS_KEY" datatype="VARCHAR" size="100" key="true" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="Map_Operation.BUDGET_NAME"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_ENTERPRISE_KEY" datatype="DECIMAL" precision="18" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="greatest(5+gen_row_num(),key_generation('DWSTAGING_DS.DWSTAGING_ALIAS.BUDGET_ENTERPRISE_XREF', 'ENTERPRISE_KEY',1))"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_FLAG" datatype="VARCHAR" size="10" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="$G_FLAG_NEW "/>
</DIAttributes>
</DIElement>
</DISchema>
<DISelect>
<DIProjection>
<DIExpression isString="true" expr="$G_BATCH_ID" >
<VARIABLE_REFERENCE name="$G_BATCH_ID" />
</DIExpression>
<DIExpression isString="true" expr="$G_PROCESS_ID" >
<VARIABLE_REFERENCE name="$G_PROCESS_ID" />
</DIExpression>
<DIExpression isString="true" expr="Map_Operation.BUDGET_NAME" >
<COLUMN_REFERENCE  qualifier1="Map_Operation" column="BUDGET_NAME" />
</DIExpression>
<DIExpression isString="true" expr="Map_Operation.BUDGET_NAME_ALT" >
<COLUMN_REFERENCE  qualifier1="Map_Operation" column="BUDGET_NAME_ALT" />
</DIExpression>
<DIExpression isString="true" expr="Map_Operation.BUDGET_NAME" >
<COLUMN_REFERENCE  qualifier1="Map_Operation" column="BUDGET_NAME" />
</DIExpression>
<DIExpression isString="true" expr="greatest((5 + gen_row_num()), key_generation(DWSTAGING_DS.DWSTAGING_ALIAS.BUDGET_ENTERPRISE_XREF, 'ENTERPRISE_KEY', 1) )" >
<FUNCTION_CALL name="greatest"  type="DI" >
<ADD>
<CONSTANT value="5" datatype="INT" />
<FUNCTION_CALL name="gen_row_num"  type="DI" />
</ADD>
<FUNCTION_CALL name="key_generation"  type="DI" tableDatastore="DWSTAGING_DS" tableOwner="DWSTAGING_ALIAS" tableName="BUDGET_ENTERPRISE_XREF" >
<CONSTANT value="ENTERPRISE_KEY" datatype="VARCHAR" size="14" />
<CONSTANT value="1" datatype="INT" />
</FUNCTION_CALL>
</FUNCTION_CALL>
</DIExpression>
<DIExpression isString="true" expr="$G_FLAG_NEW" >
<VARIABLE_REFERENCE name="$G_FLAG_NEW" />
</DIExpression>
</DIProjection>
<DIFrom>
<DITableSpec name="Map_Operation" />
</DIFrom>
</DISelect>
<DIAttributes>
<DIAttribute name="distinct_run_as_separate_process" value="no"/>
<DIAttribute name="group_by_run_as_separate_process" value="no"/>
<DIAttribute name="join_run_as_separate_process" value="no"/>
<DIAttribute name="order_by_run_as_separate_process" value="no"/>
<DIAttribute name="run_as_separate_process" value="no"/>
</DIAttributes>
</DIQuery>

<DITransformCall typeId="111" name="Merge" >
<DIInputView name="Query_1"  />
<DIInputView name="Query_2"  />
<DISchema name="Merge" >
</DISchema>
</DITransformCall>
<DIDatabaseTableTarget typeID="11" bulkLoader="false" datastoreName="DWSTAGING_DS" ownerName="DWSTAGING_ALIAS" tableName="BUDGET_MSC" >
<DIInputView name="Merge"  />
<DIAttributes>
<DIAttribute name="LDRLiveLoad" value="no"/>
<DIAttribute name="Table_Type" value="TABLE"/>
<DIAttribute name="connection_port" value="no"/>
<DIAttribute name="ldr_configuration_enabled" value="yes"/>
<DIAttribute name="ldr_configurations" hasNestedXMLTree ="true">
<LDRConfigurations>
<LDRConfiguration database_type="Microsoft_SQL_Server" database_version="Microsoft SQL Server 2005">
<auto_correct_using_merge>yes</auto_correct_using_merge>
<bulk_ldr_all_rows/>
<bulk_ldr_max_errors/>
<bulk_ldr_rows_per_commit>1000</bulk_ldr_rows_per_commit>
<enable_partitioning>no</enable_partitioning>
<ignore_column_case>yes</ignore_column_case>
<ignore_columns_null>no</ignore_columns_null>
<ignore_columns_value/>
<loader_auto_correct>no</loader_auto_correct>
<loader_bulk_load>1</loader_bulk_load>
<loader_compare_column>compare_by_name</loader_compare_column>
<loader_delete_map/>
<loader_drop_and_create_table>no</loader_drop_and_create_table>
<loader_insert_map/>
<loader_load_choice>append</loader_load_choice>
<loader_num_parallel_loaders>1</loader_num_parallel_loaders>
<loader_overflow_file>overflow_file</loader_overflow_file>
<loader_post_load1/>
<loader_pre_load1/>
<loader_quote_names>0</loader_quote_names>
<loader_transactional>no</loader_transactional>
<loader_transactional_order>0</loader_transactional_order>
<loader_update_key_columns>no</loader_update_key_columns>
<loader_update_map/>
<loader_use_user_defined_keys>no</loader_use_user_defined_keys>
<loader_xact_size>1000</loader_xact_size>
<mssql_bulk_ldr_mode>truncate</mssql_bulk_ldr_mode>
<mssql_bulk_ldr_packet_size>4</mssql_bulk_ldr_packet_size>
<overflow_file_format>write_data</overflow_file_format>
<overriding_substitution_parameter_for_tablename/>
<use_overflow_file>no</use_overflow_file>
<use_unicode_varchar>no</use_unicode_varchar>
<sql_text/>
</LDRConfiguration>
</LDRConfigurations>
</DIAttribute>
<DIAttribute name="loader_template_table" value="no"/>
<DIAttribute name="name" value="DWSTAGING_DS"/>
<DIAttribute name="use_unicode_varchar" value="no"/>
</DIAttributes>
</DIDatabaseTableTarget>

<DIQuery typeId="122"  >
<DIUIOptions>
<DIAttribute name="ui_acta_from_schema_0" value="BUDGET_EXTT_V_1"/>
<DIAttribute name="ui_display_name" value="QRY_SRT"/>
</DIUIOptions>
<DISchema name="QRY_SRT" >
<DIElement name="BUDGET_NAME" datatype="VARCHAR" size="60" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="BUDGET_EXTT_V_1.BUDGET_NAME"/>
</DIAttributes>
</DIElement>
<DIElement name="BUDGET_NAME_ALT" datatype="VARCHAR" size="60" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="BUDGET_EXTT_V_1.BUDGET_NAME_ALT"/>
</DIAttributes>
</DIElement>
</DISchema>
<DISelect>
<DIProjection>
<DIExpression isString="true" expr="BUDGET_EXTT_V_1.BUDGET_NAME" >
<COLUMN_REFERENCE  qualifier1="BUDGET_EXTT_V_1" column="BUDGET_NAME" />
</DIExpression>
<DIExpression isString="true" expr="BUDGET_EXTT_V_1.BUDGET_NAME_ALT" >
<COLUMN_REFERENCE  qualifier1="BUDGET_EXTT_V_1" column="BUDGET_NAME_ALT" />
</DIExpression>
</DIProjection>
<DIFrom>
<DITableSpec name="BUDGET_EXTT_V_1" />
</DIFrom>
<DIOrderBys>
<DIOrderBy direction="ASC">
<DIExpression isString="true" expr="BUDGET_EXTT_V_1.BUDGET_NAME" >
<COLUMN_REFERENCE  qualifier1="BUDGET_EXTT_V_1" column="BUDGET_NAME" />
</DIExpression>
</DIOrderBy>
</DIOrderBys>
</DISelect>
<DIAttributes>
<DIAttribute name="distinct_run_as_separate_process" value="no"/>
<DIAttribute name="group_by_run_as_separate_process" value="no"/>
<DIAttribute name="join_run_as_separate_process" value="no"/>
<DIAttribute name="order_by_run_as_separate_process" value="no"/>
<DIAttribute name="run_as_separate_process" value="no"/>
</DIAttributes>
</DIQuery>

</DITransforms>
<DIAttributes>
<DIAttribute name="Audit" hasNestedXMLTree ="true">
<Audit>
<AuditObjects>
</AuditObjects>
<AuditRules>
</AuditRules>
<Notifications>
<RaiseException Enabled="true">
</RaiseException>
<Mail Enabled="false"/>
<Script Enabled="false"/>
</Notifications>
</Audit>
</DIAttribute>
<DIAttribute name="Cache_type" value="pageable_cache"/>
<DIAttribute name="Parallelism_degree" value="0"/>
<DIAttribute name="allows_both_input_and_output" value="yes"/>
<DIAttribute name="run_once" value="no"/>
<DIAttribute name="use_dataflow_links" value="no"/>
<DIAttribute name="use_datastore_links" value="yes"/>
<DIAttribute name="validation_xform_exists" value="no"/>
<DIAttribute name="validation_xform_stats" value="no"/>
</DIAttributes>
</DIDataflow>
<DIWorkflow name="COSTCATEGORY_CON_WF" typeId="2" >
<DIVariables>
<DIElement paramType="LOCAL" name="$L_IDENTIFIER" datatype="VARCHAR" size="100" >
</DIElement>
<DIElement paramType="LOCAL" name="$L_SOURCE_XREF_ID" datatype="DECIMAL" precision="18" scale="0" >
</DIElement>
<DIElement paramType="LOCAL" name="$L_CONSOLIDATED_XREF_ID" datatype="DECIMAL" precision="18" scale="0" >
</DIElement>
<DIElement paramType="LOCAL" name="$L_SOURCE_ENTITY" datatype="VARCHAR" size="200" >
</DIElement>
<DIElement paramType="LOCAL" name="$L_CONSOLIDATED_NAME" datatype="VARCHAR" size="200" >
</DIElement>
</DIVariables>
<DISteps>
<DITryStep typeId="13" >
<DIUIOptions>
<DIAttribute name="AutoLayout" value="yes"/>
<DIAttribute name="ui_display_name" value="COSTCATEGORY_CON_TRY"/>
</DIUIOptions>
<DISteps>
<DIScript>
<DIUIOptions>
<DIAttribute name="ui_display_name" value="COSTCATEGORY_CON_START_SC"/>
<DIAttribute name="ui_script_text" value="# CALL FUNCTION TO TRACK START OF WORKFLOW&#xD;&#xA;$L_IDENTIFIER = workflow_name();&#xD;&#xA;ABC_STARTWF_FN($L_IDENTIFIER, $G_PROCESS_ID);&#xD;&#xA;&#xD;&#xA;&#xD;&#xA;$L_SOURCE_ENTITY = 'COSTCATEGORY';&#xD;&#xA;GET_SOURCE_XREF_ID_FN($L_SOURCE_ENTITY,$L_SOURCE_XREF_ID);"/>
</DIUIOptions>
<DIAssignmentStep typeId="12" variable="$L_IDENTIFIER" >
<DIExpression isString="true" expr="workflow_name()" >
<FUNCTION_CALL name="workflow_name"  type="DI" />
</DIExpression>
</DIAssignmentStep>
<DIFunctionCallStep typeId="23" >
<DIExpression isString="true" expr="abc_startwf_fn($L_IDENTIFIER, $G_PROCESS_ID)" >
<FUNCTION_CALL name="abc_startwf_fn"  type="DI" >
<VARIABLE_REFERENCE name="$L_IDENTIFIER" />
<VARIABLE_REFERENCE name="$G_PROCESS_ID" />
</FUNCTION_CALL>
</DIExpression>
</DIFunctionCallStep>
<DIAssignmentStep typeId="12" variable="$L_SOURCE_ENTITY" >
<DIExpression isString="true" expr="'COSTCATEGORY'" >
<CONSTANT value="COSTCATEGORY" datatype="VARCHAR" size="12" />
</DIExpression>
</DIAssignmentStep>
<DIFunctionCallStep typeId="23" >
<DIExpression isString="true" expr="get_source_xref_id_fn($L_SOURCE_ENTITY, $L_SOURCE_XREF_ID)" >
<FUNCTION_CALL name="get_source_xref_id_fn"  type="DI" >
<VARIABLE_REFERENCE name="$L_SOURCE_ENTITY" />
<VARIABLE_REFERENCE name="$L_SOURCE_XREF_ID" />
</FUNCTION_CALL>
</DIExpression>
</DIFunctionCallStep>
</DIScript>
<DICallStep typeId="1"  calledObjectType="Dataflow" name="COSTCATEGORY_CON_DF" >
<DIUIOptions>
<DIAttribute name="ParmDefaulted_01" value="FALSE"/>
<DIAttribute name="ParmDefaulted_02" value="FALSE"/>
</DIUIOptions>
<DIParameterValues>
<DIExpression isString="true" expr="$L_SOURCE_XREF_ID" >
<VARIABLE_REFERENCE name="$L_SOURCE_XREF_ID" />
</DIExpression>
<DIExpression isString="true" expr="$L_CONSOLIDATED_XREF_ID" >
<VARIABLE_REFERENCE name="$L_CONSOLIDATED_XREF_ID" />
</DIExpression>
</DIParameterValues>
</DICallStep>
<DIScript>
<DIUIOptions>
<DIAttribute name="ui_display_name" value="COSTCATEGORY_CON_END_SC"/>
<DIAttribute name="ui_script_text" value="# CALL FUNCTION TO TRACK END OF WORKFLOW&#xA;ABC_ENDWF_FN($L_IDENTIFIER, $G_PROCESS_ID);"/>
</DIUIOptions>
<DIFunctionCallStep typeId="23" >
<DIExpression isString="true" expr="abc_endwf_fn($L_IDENTIFIER, $G_PROCESS_ID)" >
<FUNCTION_CALL name="abc_endwf_fn"  type="DI" >
<VARIABLE_REFERENCE name="$L_IDENTIFIER" />
<VARIABLE_REFERENCE name="$G_PROCESS_ID" />
</FUNCTION_CALL>
</DIExpression>
</DIFunctionCallStep>
</DIScript>
</DISteps>
<DICatch typeId="20" errorCode="210101" >
<DIUIOptions>
<DIAttribute name="AutoLayout" value="yes"/>
<DIAttribute name="ui_display_name" value="COSTCATEGORY_CON_CATCH"/>
</DIUIOptions>
<DISteps>
<DIScript>
<DIUIOptions>
<DIAttribute name="ui_display_name" value="COSTCATEGORY_AM_CON_FAIL_SC"/>
<DIAttribute name="ui_script_text" value="# CALL FUNCTION TO TRACK FAIL OF WORKFLOW&#xA;ABC_FAILWF_FN(workflow_name(), $G_PROCESS_ID, 'Error: \[' || error_number() || '\] ' || error_message());"/>
</DIUIOptions>
<DIFunctionCallStep typeId="23" >
<DIExpression isString="true" expr="abc_failwf_fn(workflow_name(), $G_PROCESS_ID, ((('Error: \\[' || error_number()) || '\\] ') || error_message()))" >
<FUNCTION_CALL name="abc_failwf_fn"  type="DI" >
<FUNCTION_CALL name="workflow_name"  type="DI" />
<VARIABLE_REFERENCE name="$G_PROCESS_ID" />
<CONCAT>
<CONCAT>
<CONCAT>
<CONSTANT value="Error: \[" datatype="VARCHAR" size="9" />
<FUNCTION_CALL name="error_number"  type="DI" />
</CONCAT>
<CONSTANT value="\] " datatype="VARCHAR" size="3" />
</CONCAT>
<FUNCTION_CALL name="error_message"  type="DI" />
</CONCAT>
</FUNCTION_CALL>
</DIExpression>
</DIFunctionCallStep>
</DIScript>
</DISteps>
</DICatch>
</DITryStep>
</DISteps>
<DIAttributes>
<DIAttribute name="run_once" value="no"/>
<DIAttribute name="unit_of_recovery" value="no"/>
</DIAttributes>
</DIWorkflow>
<DIDataflow name="COSTCATEGORY_CON_DF" typeId="1" >
<DIUIOptions>
<DIAttribute name="AutoLayout" value="yes"/>
</DIUIOptions>
<DIParameters>
<DIElement paramType="IN" name="$P_SOURCE_XREF_ID" datatype="DECIMAL" precision="18" scale="0" >
</DIElement>
<DIElement paramType="IN" name="$P_CONSOLIDATED_XREF_ID" datatype="DECIMAL" precision="18" scale="0" >
</DIElement>
</DIParameters>
<DITransforms>
<DIQuery typeId="122"  >
<DIUIOptions>
<DIAttribute name="ObjectDesc" value="Order by BUSINESS_KEY from the source view"/>
<DIAttribute name="ui_acta_from_schema_0" value="COSTCATEGORY_EXTT_V"/>
<DIAttribute name="ui_display_name" value="QRY_ORDER_BY_BUSINESS_KEY"/>
</DIUIOptions>
<DISchema name="QRY_ORDER_BY_BUSINESS_KEY" >
<DIElement name="MD_BUSINESS_KEY" datatype="VARCHAR" size="100" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="decode ((COSTCATEGORY_EXTT_V.SOURCE_NAME = 'VCENTER'),  COSTCATEGORY_EXTT_V.SOURCE_NAME||'|'||COSTCATEGORY_EXTT_V.DETAILED_CATEGORY ,&#xD;&#xA;(COSTCATEGORY_EXTT_V.SOURCE_NAME = 'AWS'),   COSTCATEGORY_EXTT_V.SOURCE_NAME||'|'||COSTCATEGORY_EXTT_V.DETAILED_CATEGORY ,&#xD;&#xA;COSTCATEGORY_EXTT_V.COSTCATEGORY_NAME_TARGET)"/>
</DIAttributes>
</DIElement>
<DIElement name="COSTCATEGORY_NAME" datatype="VARCHAR" size="255" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="COSTCATEGORY_EXTT_V.COSTCATEGORY_NAME_TARGET"/>
</DIAttributes>
</DIElement>
<DIElement name="COSTCATEGORY_NAME_ALT" datatype="VARCHAR" size="60" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="COSTCATEGORY_EXTT_V.COSTCATEGORY_NAME_ALT"/>
</DIAttributes>
</DIElement>
<DIElement name="ACCOUNTING_CODE" datatype="VARCHAR" size="60" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="COSTCATEGORY_EXTT_V.ACCOUNTING_CODE"/>
</DIAttributes>
</DIElement>
<DIElement name="SUB_CATEGORY" datatype="VARCHAR" size="60" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="COSTCATEGORY_EXTT_V.SUB_CATEGORY"/>
</DIAttributes>
</DIElement>
<DIElement name="DETAILED_CATEGORY" datatype="VARCHAR" size="60" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="COSTCATEGORY_EXTT_V.DETAILED_CATEGORY"/>
</DIAttributes>
</DIElement>
</DISchema>
<DISelect>
<DIProjection>
<DIExpression isString="true" expr="decode((COSTCATEGORY_EXTT_V.SOURCE_NAME = 'VCENTER'), ((COSTCATEGORY_EXTT_V.SOURCE_NAME || '|') || COSTCATEGORY_EXTT_V.DETAILED_CATEGORY), (COSTCATEGORY_EXTT_V.SOURCE_NAME = 'AWS'), ((COSTCATEGORY_EXTT_V.SOURCE_NAME || '|') || COSTCATEGORY_EXTT_V.DETAILED_CATEGORY), COSTCATEGORY_EXTT_V.COSTCATEGORY_NAME_TARGET)" >
<FUNCTION_CALL name="decode"  type="DI" >
<LOGICAL_OP op="EQ">
<COLUMN_REFERENCE  qualifier1="COSTCATEGORY_EXTT_V" column="SOURCE_NAME" />
<CONSTANT value="VCENTER" datatype="VARCHAR" size="7" />
</LOGICAL_OP>
<CONCAT>
<CONCAT>
<COLUMN_REFERENCE  qualifier1="COSTCATEGORY_EXTT_V" column="SOURCE_NAME" />
<CONSTANT value="|" datatype="VARCHAR" size="1" />
</CONCAT>
<COLUMN_REFERENCE  qualifier1="COSTCATEGORY_EXTT_V" column="DETAILED_CATEGORY" />
</CONCAT>
<LOGICAL_OP op="EQ">
<COLUMN_REFERENCE  qualifier1="COSTCATEGORY_EXTT_V" column="SOURCE_NAME" />
<CONSTANT value="AWS" datatype="VARCHAR" size="3" />
</LOGICAL_OP>
<CONCAT>
<CONCAT>
<COLUMN_REFERENCE  qualifier1="COSTCATEGORY_EXTT_V" column="SOURCE_NAME" />
<CONSTANT value="|" datatype="VARCHAR" size="1" />
</CONCAT>
<COLUMN_REFERENCE  qualifier1="COSTCATEGORY_EXTT_V" column="DETAILED_CATEGORY" />
</CONCAT>
<COLUMN_REFERENCE  qualifier1="COSTCATEGORY_EXTT_V" column="COSTCATEGORY_NAME_TARGET" />
</FUNCTION_CALL>
</DIExpression>
<DIExpression isString="true" expr="COSTCATEGORY_EXTT_V.COSTCATEGORY_NAME_TARGET" >
<COLUMN_REFERENCE  qualifier1="COSTCATEGORY_EXTT_V" column="COSTCATEGORY_NAME_TARGET" />
</DIExpression>
<DIExpression isString="true" expr="COSTCATEGORY_EXTT_V.COSTCATEGORY_NAME_ALT" >
<COLUMN_REFERENCE  qualifier1="COSTCATEGORY_EXTT_V" column="COSTCATEGORY_NAME_ALT" />
</DIExpression>
<DIExpression isString="true" expr="COSTCATEGORY_EXTT_V.ACCOUNTING_CODE" >
<COLUMN_REFERENCE  qualifier1="COSTCATEGORY_EXTT_V" column="ACCOUNTING_CODE" />
</DIExpression>
<DIExpression isString="true" expr="COSTCATEGORY_EXTT_V.SUB_CATEGORY" >
<COLUMN_REFERENCE  qualifier1="COSTCATEGORY_EXTT_V" column="SUB_CATEGORY" />
</DIExpression>
<DIExpression isString="true" expr="COSTCATEGORY_EXTT_V.DETAILED_CATEGORY" >
<COLUMN_REFERENCE  qualifier1="COSTCATEGORY_EXTT_V" column="DETAILED_CATEGORY" />
</DIExpression>
</DIProjection>
<DIFrom>
<DITableSpec name="COSTCATEGORY_EXTT_V" />
</DIFrom>
</DISelect>
<DIAttributes>
<DIAttribute name="distinct_run_as_separate_process" value="no"/>
<DIAttribute name="group_by_run_as_separate_process" value="no"/>
<DIAttribute name="join_run_as_separate_process" value="no"/>
<DIAttribute name="order_by_run_as_separate_process" value="no"/>
<DIAttribute name="run_as_separate_process" value="no"/>
</DIAttributes>
</DIQuery>

<DIQuery typeId="122"  >
<DIUIOptions>
<DIAttribute name="ui_acta_from_schema_0" value="QRY_GEN_KEY"/>
<DIAttribute name="ui_display_name" value="QRY_EnterpriseKey"/>
</DIUIOptions>
<DISchema name="QRY_EnterpriseKey" >
<DIElement name="SOURCE_INTEGRATION_XREF_ID" datatype="DECIMAL" precision="18" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="#lookup(DWSTAGING_DS.DWSTAGING_ALIAS.SOURCE_INTEGRATION_XREF, SOURCE_INTEGRATION_XREF_ID,'-2','NO_CACHE', SINGLE_SOURCE_IDENTITY_NAME, $L_SOURCE_XREF_ID)&#xA;$P_SOURCE_XREF_ID&#xA;"/>
</DIAttributes>
</DIElement>
<DIElement name="UPDATE_STATUS" datatype="VARCHAR" size="10" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="'INSERT'"/>
</DIAttributes>
</DIElement>
<DIElement name="ENTERPRISE_XREF_ID" datatype="INT" key="true" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="greatest(5+gen_row_num(),key_generation('DWSTAGING_DS.DWSTAGING_ALIAS.COSTCATEGORY_ENTERPRISE_XREF', 'ENTERPRISE_XREF_ID', 1))"/>
</DIAttributes>
</DIElement>
<DIElement name="ENTERPRISE_KEY" datatype="DECIMAL" precision="18" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="QRY_GEN_KEY.MD_ENTERPRISE_KEY"/>
</DIAttributes>
</DIElement>
<DIElement name="BUSINESS_KEYVALUE" datatype="VARCHAR" size="60" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="QRY_GEN_KEY.MD_BUSINESS_KEY"/>
</DIAttributes>
</DIElement>
<DIElement name="CREATEDDATETIME" datatype="DATETIME" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="$G_MODDATE_LOC"/>
</DIAttributes>
</DIElement>
<DIElement name="MODIFIEDDATETIME" datatype="DATETIME" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="$G_MODDATE_LOC "/>
</DIAttributes>
</DIElement>
<DIElement name="MD_BATCH_ID" datatype="DECIMAL" precision="19" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="$G_BATCH_ID"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_PROCESS_ID" datatype="DECIMAL" precision="19" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="$G_PROCESS_ID"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_CP_ID" datatype="DECIMAL" precision="28" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="0"/>
</DIAttributes>
</DIElement>
</DISchema>
<DISelect>
<DIProjection>
<DIExpression isString="true" expr="$P_SOURCE_XREF_ID" >
<VARIABLE_REFERENCE name="$P_SOURCE_XREF_ID" />
</DIExpression>
<DIExpression isString="true" expr="'INSERT'" >
<CONSTANT value="INSERT" datatype="VARCHAR" size="6" />
</DIExpression>
<DIExpression isString="true" expr="greatest((5 + gen_row_num()), key_generation(DWSTAGING_DS.DWSTAGING_ALIAS.COSTCATEGORY_ENTERPRISE_XREF, 'ENTERPRISE_XREF_ID', 1) )" >
<FUNCTION_CALL name="greatest"  type="DI" >
<ADD>
<CONSTANT value="5" datatype="INT" />
<FUNCTION_CALL name="gen_row_num"  type="DI" />
</ADD>
<FUNCTION_CALL name="key_generation"  type="DI" tableDatastore="DWSTAGING_DS" tableOwner="DWSTAGING_ALIAS" tableName="COSTCATEGORY_ENTERPRISE_XREF" >
<CONSTANT value="ENTERPRISE_XREF_ID" datatype="VARCHAR" size="18" />
<CONSTANT value="1" datatype="INT" />
</FUNCTION_CALL>
</FUNCTION_CALL>
</DIExpression>
<DIExpression isString="true" expr="QRY_GEN_KEY.MD_ENTERPRISE_KEY" >
<COLUMN_REFERENCE  qualifier1="QRY_GEN_KEY" column="MD_ENTERPRISE_KEY" />
</DIExpression>
<DIExpression isString="true" expr="QRY_GEN_KEY.MD_BUSINESS_KEY" >
<COLUMN_REFERENCE  qualifier1="QRY_GEN_KEY" column="MD_BUSINESS_KEY" />
</DIExpression>
<DIExpression isString="true" expr="$G_MODDATE_LOC" >
<VARIABLE_REFERENCE name="$G_MODDATE_LOC" />
</DIExpression>
<DIExpression isString="true" expr="$G_MODDATE_LOC" >
<VARIABLE_REFERENCE name="$G_MODDATE_LOC" />
</DIExpression>
<DIExpression isString="true" expr="$G_BATCH_ID" >
<VARIABLE_REFERENCE name="$G_BATCH_ID" />
</DIExpression>
<DIExpression isString="true" expr="$G_PROCESS_ID" >
<VARIABLE_REFERENCE name="$G_PROCESS_ID" />
</DIExpression>
<DIExpression isString="true" expr="0" >
<CONSTANT value="0" datatype="INT" />
</DIExpression>
</DIProjection>
<DIFrom>
<DITableSpec name="QRY_GEN_KEY" />
</DIFrom>
</DISelect>
<DIAttributes>
<DIAttribute name="distinct_run_as_separate_process" value="no"/>
<DIAttribute name="group_by_run_as_separate_process" value="no"/>
<DIAttribute name="join_run_as_separate_process" value="no"/>
<DIAttribute name="order_by_run_as_separate_process" value="no"/>
<DIAttribute name="run_as_separate_process" value="no"/>
</DIAttributes>
</DIQuery>

<DIDatabaseTableTarget typeID="11" bulkLoader="false" datastoreName="DWSTAGING_DS" ownerName="DWSTAGING_ALIAS" tableName="COSTCATEGORY_MSC" >
<DIInputView name="QRY_NEW"  />
<DIAttributes>
<DIAttribute name="LDRLiveLoad" value="no"/>
<DIAttribute name="Table_Type" value="TABLE"/>
<DIAttribute name="connection_port" value="no"/>
<DIAttribute name="ldr_configuration_enabled" value="yes"/>
<DIAttribute name="ldr_configurations" hasNestedXMLTree ="true">
<LDRConfigurations>
<LDRConfiguration database_type="Microsoft_SQL_Server" database_version="Microsoft SQL Server 2005">
<auto_correct_using_merge>Yes</auto_correct_using_merge>
<bulk_ldr_all_rows/>
<bulk_ldr_max_errors/>
<bulk_ldr_rows_per_commit>1000</bulk_ldr_rows_per_commit>
<enable_partitioning>no</enable_partitioning>
<ignore_column_case>yes</ignore_column_case>
<ignore_columns_null>No</ignore_columns_null>
<ignore_columns_value/>
<loader_auto_correct>No</loader_auto_correct>
<loader_bulk_load>1</loader_bulk_load>
<loader_compare_column>Compare by name</loader_compare_column>
<loader_delete_map/>
<loader_drop_and_create_table>no</loader_drop_and_create_table>
<loader_insert_map/>
<loader_load_choice>append</loader_load_choice>
<loader_num_parallel_loaders>1</loader_num_parallel_loaders>
<loader_overflow_file>overflow_file</loader_overflow_file>
<loader_post_load1/>
<loader_pre_load1/>
<loader_quote_names>0</loader_quote_names>
<loader_transactional>no</loader_transactional>
<loader_transactional_order>0</loader_transactional_order>
<loader_update_key_columns>No</loader_update_key_columns>
<loader_update_map/>
<loader_use_user_defined_keys>No</loader_use_user_defined_keys>
<loader_xact_size>1000</loader_xact_size>
<mssql_bulk_ldr_mode>truncate</mssql_bulk_ldr_mode>
<mssql_bulk_ldr_packet_size>4</mssql_bulk_ldr_packet_size>
<overflow_file_format>Write data</overflow_file_format>
<overriding_substitution_parameter_for_tablename/>
<use_overflow_file>No</use_overflow_file>
<use_unicode_varchar>no</use_unicode_varchar>
<sql_text/>
</LDRConfiguration>
</LDRConfigurations>
</DIAttribute>
<DIAttribute name="loader_template_table" value="no"/>
<DIAttribute name="name" value="DWSTAGING_DS"/>
<DIAttribute name="use_unicode_varchar" value="no"/>
</DIAttributes>
</DIDatabaseTableTarget>

<DIQuery typeId="122"  >
<DIUIOptions>
<DIAttribute name="ui_acta_from_schema_0" value="QRY_GEN_KEY"/>
<DIAttribute name="ui_display_name" value="QRY_NEW"/>
</DIUIOptions>
<DISchema name="QRY_NEW" >
<DIElement name="MD_BATCH_ID" datatype="DECIMAL" precision="19" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="QRY_GEN_KEY.MD_BATCH_ID"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_PROCESS_ID" datatype="DECIMAL" precision="19" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="QRY_GEN_KEY.MD_PROCESS_ID"/>
</DIAttributes>
</DIElement>
<DIElement name="ACCOUNTING_CODE" datatype="VARCHAR" size="60" >
<DIAttributes>
<DIAttribute name="Description" value="Reference Code"/>
<DIAttribute name="ui_mapping_text" value="QRY_GEN_KEY.ACCOUNTING_CODE"/>
</DIAttributes>
</DIElement>
<DIElement name="COSTCATEGORY_NAME" datatype="VARCHAR" size="60" >
<DIAttributes>
<DIAttribute name="Description" value="Display name of the Cost Category"/>
<DIAttribute name="ui_mapping_text" value="QRY_GEN_KEY.COSTCATEGORY_NAME"/>
</DIAttributes>
</DIElement>
<DIElement name="COSTCATEGORY_NAME_ALT" datatype="VARCHAR" size="60" >
<DIAttributes>
<DIAttribute name="Description" value="Alternate display name of the Cost Category"/>
<DIAttribute name="ui_mapping_text" value="QRY_GEN_KEY.COSTCATEGORY_NAME_ALT"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_BUSINESS_KEY" datatype="VARCHAR" size="100" key="true" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="QRY_GEN_KEY.MD_BUSINESS_KEY"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_ENTERPRISE_KEY" datatype="DECIMAL" precision="18" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="greatest(5+gen_row_num(),key_generation('DWSTAGING_DS.DWSTAGING_ALIAS.COSTCATEGORY_ENTERPRISE_XREF', 'ENTERPRISE_KEY',1))"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_FLAG" datatype="VARCHAR" size="10" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="'N'"/>
</DIAttributes>
</DIElement>
<DIElement name="SUB_CATEGORY" datatype="VARCHAR" size="60" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="QRY_GEN_KEY.SUB_CATEGORY"/>
</DIAttributes>
</DIElement>
<DIElement name="DETAILED_CATEGORY" datatype="VARCHAR" size="60" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="QRY_GEN_KEY.DETAILED_CATEGORY"/>
</DIAttributes>
</DIElement>
</DISchema>
<DISelect>
<DIProjection>
<DIExpression isString="true" expr="QRY_GEN_KEY.MD_BATCH_ID" >
<COLUMN_REFERENCE  qualifier1="QRY_GEN_KEY" column="MD_BATCH_ID" />
</DIExpression>
<DIExpression isString="true" expr="QRY_GEN_KEY.MD_PROCESS_ID" >
<COLUMN_REFERENCE  qualifier1="QRY_GEN_KEY" column="MD_PROCESS_ID" />
</DIExpression>
<DIExpression isString="true" expr="QRY_GEN_KEY.ACCOUNTING_CODE" >
<COLUMN_REFERENCE  qualifier1="QRY_GEN_KEY" column="ACCOUNTING_CODE" />
</DIExpression>
<DIExpression isString="true" expr="QRY_GEN_KEY.COSTCATEGORY_NAME" >
<COLUMN_REFERENCE  qualifier1="QRY_GEN_KEY" column="COSTCATEGORY_NAME" />
</DIExpression>
<DIExpression isString="true" expr="QRY_GEN_KEY.COSTCATEGORY_NAME_ALT" >
<COLUMN_REFERENCE  qualifier1="QRY_GEN_KEY" column="COSTCATEGORY_NAME_ALT" />
</DIExpression>
<DIExpression isString="true" expr="QRY_GEN_KEY.MD_BUSINESS_KEY" >
<COLUMN_REFERENCE  qualifier1="QRY_GEN_KEY" column="MD_BUSINESS_KEY" />
</DIExpression>
<DIExpression isString="true" expr="greatest((5 + gen_row_num()), key_generation(DWSTAGING_DS.DWSTAGING_ALIAS.COSTCATEGORY_ENTERPRISE_XREF, 'ENTERPRISE_KEY', 1) )" >
<FUNCTION_CALL name="greatest"  type="DI" >
<ADD>
<CONSTANT value="5" datatype="INT" />
<FUNCTION_CALL name="gen_row_num"  type="DI" />
</ADD>
<FUNCTION_CALL name="key_generation"  type="DI" tableDatastore="DWSTAGING_DS" tableOwner="DWSTAGING_ALIAS" tableName="COSTCATEGORY_ENTERPRISE_XREF" >
<CONSTANT value="ENTERPRISE_KEY" datatype="VARCHAR" size="14" />
<CONSTANT value="1" datatype="INT" />
</FUNCTION_CALL>
</FUNCTION_CALL>
</DIExpression>
<DIExpression isString="true" expr="'N'" >
<CONSTANT value="N" datatype="VARCHAR" size="1" />
</DIExpression>
<DIExpression isString="true" expr="QRY_GEN_KEY.SUB_CATEGORY" >
<COLUMN_REFERENCE  qualifier1="QRY_GEN_KEY" column="SUB_CATEGORY" />
</DIExpression>
<DIExpression isString="true" expr="QRY_GEN_KEY.DETAILED_CATEGORY" >
<COLUMN_REFERENCE  qualifier1="QRY_GEN_KEY" column="DETAILED_CATEGORY" />
</DIExpression>
</DIProjection>
<DIFrom>
<DITableSpec name="QRY_GEN_KEY" />
</DIFrom>
</DISelect>
<DIAttributes>
<DIAttribute name="distinct_run_as_separate_process" value="no"/>
<DIAttribute name="group_by_run_as_separate_process" value="no"/>
<DIAttribute name="join_run_as_separate_process" value="no"/>
<DIAttribute name="order_by_run_as_separate_process" value="no"/>
<DIAttribute name="run_as_separate_process" value="no"/>
</DIAttributes>
</DIQuery>

<DIDatabaseTableTarget typeID="11" bulkLoader="false" datastoreName="DWSTAGING_DS" ownerName="DWSTAGING_ALIAS" tableName="COSTCATEGORY_ENTERPRISE_XREF" >
<DIInputView name="QRY_EnterpriseKey"  />
<DIAttributes>
<DIAttribute name="LDRLiveLoad" value="no"/>
<DIAttribute name="Table_Type" value="TABLE"/>
<DIAttribute name="connection_port" value="no"/>
<DIAttribute name="ldr_configuration_enabled" value="yes"/>
<DIAttribute name="ldr_configurations" hasNestedXMLTree ="true">
<LDRConfigurations>
<LDRConfiguration database_type="Microsoft_SQL_Server" database_version="Microsoft SQL Server 2005">
<auto_correct_using_merge>Yes</auto_correct_using_merge>
<bulk_ldr_all_rows/>
<bulk_ldr_max_errors/>
<bulk_ldr_rows_per_commit/>
<enable_partitioning>no</enable_partitioning>
<ignore_column_case>yes</ignore_column_case>
<ignore_columns_null>No</ignore_columns_null>
<ignore_columns_value/>
<loader_auto_correct>no</loader_auto_correct>
<loader_bulk_load>0</loader_bulk_load>
<loader_compare_column>compare_by_name</loader_compare_column>
<loader_delete_map/>
<loader_drop_and_create_table>no</loader_drop_and_create_table>
<loader_insert_map/>
<loader_load_choice>append</loader_load_choice>
<loader_num_parallel_loaders>1</loader_num_parallel_loaders>
<loader_overflow_file>overflow_file</loader_overflow_file>
<loader_post_load1/>
<loader_pre_load1/>
<loader_quote_names>0</loader_quote_names>
<loader_transactional>no</loader_transactional>
<loader_transactional_order>0</loader_transactional_order>
<loader_update_key_columns>no</loader_update_key_columns>
<loader_update_map/>
<loader_use_user_defined_keys>no</loader_use_user_defined_keys>
<loader_xact_size>1000</loader_xact_size>
<mssql_bulk_ldr_mode>append</mssql_bulk_ldr_mode>
<mssql_bulk_ldr_packet_size>4</mssql_bulk_ldr_packet_size>
<overflow_file_format>Write data</overflow_file_format>
<overriding_substitution_parameter_for_tablename/>
<use_overflow_file>no</use_overflow_file>
<use_unicode_varchar>no</use_unicode_varchar>
<sql_text/>
</LDRConfiguration>
</LDRConfigurations>
</DIAttribute>
<DIAttribute name="loader_template_table" value="no"/>
<DIAttribute name="name" value="DWSTAGING_DS"/>
<DIAttribute name="use_unicode_varchar" value="no"/>
</DIAttributes>
</DIDatabaseTableTarget>

<DIDatabaseTableSource typeId="22" datastoreName="SRCSTAGING_DS" ownerName="SRCSTAGING_ALIAS" tableName="COSTCATEGORY_EXTT_V" >
<DIOutputView name="COSTCATEGORY_EXTT_V"  />
<DIAttributes>
<DIAttribute name="array_fetch_size" value="1000"/>
<DIAttribute name="cache" value="yes"/>
<DIAttribute name="connection_port" value="no"/>
<DIAttribute name="enable_partitioning" value="no"/>
<DIAttribute name="name" value="SRCSTAGING_DS"/>
<DIAttribute name="package_size" value="0"/>
<DIAttribute name="reader_is_DB2CDC_table" value="no"/>
<DIAttribute name="reader_overflow_file" value="overflow_file"/>
<DIAttribute name="reader_template_table" value="no"/>
<DIAttribute name="reader_use_overflow_file" value="no"/>
<DIAttribute name="reader_use_trex_transaction" value="no"/>
<DIAttribute name="table_weight" value="0"/>
</DIAttributes>
</DIDatabaseTableSource>

<DITransformCall typeId="111" name="Table_Comparison" >
<DIInputView name="Query"  />
<DISchema name="COSTCATEGORY_CSNP" >
</DISchema>
<DIAttributes>
<DIAttribute name="cache_comparison_table" value="no"/>
<DIAttribute name="database_datastore" value="DWSTAGING_DS"/>
<DIAttribute name="detect_all_dup_deletes" value="no"/>
<DIAttribute name="detect_delete" value="no"/>
<DIAttribute name="generated_key_column" value="MD_ENTERPRISE_KEY"/>
<DIAttribute name="primary_key_column1" value="MD_BUSINESS_KEY"/>
<DIAttribute name="run_as_separate_process" value="no"/>
<DIAttribute name="source_is_sorted" value="yes"/>
<DIAttribute name="table_name" value="COSTCATEGORY_CSNP"/>
<DIAttribute name="table_owner" value="DWSTAGING_ALIAS"/>
<DIAttribute name="update_cache" value="yes"/>
</DIAttributes>
</DITransformCall>
<DIQuery typeId="122"  >
<DIUIOptions>
<DIAttribute name="ui_acta_from_schema_0" value="Map_Operation"/>
<DIAttribute name="ui_display_name" value="QRY_GEN_KEY"/>
</DIUIOptions>
<DISchema name="QRY_GEN_KEY" >
<DIElement name="MD_BATCH_ID" datatype="DECIMAL" precision="19" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="$G_BATCH_ID "/>
</DIAttributes>
</DIElement>
<DIElement name="MD_PROCESS_ID" datatype="DECIMAL" precision="19" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="$G_PROCESS_ID "/>
</DIAttributes>
</DIElement>
<DIElement name="ACCOUNTING_CODE" datatype="VARCHAR" size="60" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="Map_Operation.ACCOUNTING_CODE"/>
</DIAttributes>
</DIElement>
<DIElement name="COSTCATEGORY_NAME" datatype="VARCHAR" size="60" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="Map_Operation.COSTCATEGORY_NAME"/>
</DIAttributes>
</DIElement>
<DIElement name="COSTCATEGORY_NAME_ALT" datatype="VARCHAR" size="60" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="Map_Operation.COSTCATEGORY_NAME_ALT"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_BUSINESS_KEY" datatype="VARCHAR" size="100" key="true" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="Map_Operation.MD_BUSINESS_KEY"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_ENTERPRISE_KEY" datatype="DECIMAL" precision="18" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="greatest(5+gen_row_num(),key_generation('DWSTAGING_DS.DWSTAGING_ALIAS.COSTCATEGORY_ENTERPRISE_XREF', 'ENTERPRISE_KEY',1))"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_FLAG" datatype="VARCHAR" size="10" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="'N'"/>
</DIAttributes>
</DIElement>
<DIElement name="SUB_CATEGORY" datatype="VARCHAR" size="60" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="Map_Operation.SUB_CATEGORY"/>
</DIAttributes>
</DIElement>
<DIElement name="DETAILED_CATEGORY" datatype="VARCHAR" size="60" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="Map_Operation.DETAILED_CATEGORY"/>
</DIAttributes>
</DIElement>
</DISchema>
<DISelect>
<DIProjection>
<DIExpression isString="true" expr="$G_BATCH_ID" >
<VARIABLE_REFERENCE name="$G_BATCH_ID" />
</DIExpression>
<DIExpression isString="true" expr="$G_PROCESS_ID" >
<VARIABLE_REFERENCE name="$G_PROCESS_ID" />
</DIExpression>
<DIExpression isString="true" expr="Map_Operation.ACCOUNTING_CODE" >
<COLUMN_REFERENCE  qualifier1="Map_Operation" column="ACCOUNTING_CODE" />
</DIExpression>
<DIExpression isString="true" expr="Map_Operation.COSTCATEGORY_NAME" >
<COLUMN_REFERENCE  qualifier1="Map_Operation" column="COSTCATEGORY_NAME" />
</DIExpression>
<DIExpression isString="true" expr="Map_Operation.COSTCATEGORY_NAME_ALT" >
<COLUMN_REFERENCE  qualifier1="Map_Operation" column="COSTCATEGORY_NAME_ALT" />
</DIExpression>
<DIExpression isString="true" expr="Map_Operation.MD_BUSINESS_KEY" >
<COLUMN_REFERENCE  qualifier1="Map_Operation" column="MD_BUSINESS_KEY" />
</DIExpression>
<DIExpression isString="true" expr="greatest((5 + gen_row_num()), key_generation(DWSTAGING_DS.DWSTAGING_ALIAS.COSTCATEGORY_ENTERPRISE_XREF, 'ENTERPRISE_KEY', 1) )" >
<FUNCTION_CALL name="greatest"  type="DI" >
<ADD>
<CONSTANT value="5" datatype="INT" />
<FUNCTION_CALL name="gen_row_num"  type="DI" />
</ADD>
<FUNCTION_CALL name="key_generation"  type="DI" tableDatastore="DWSTAGING_DS" tableOwner="DWSTAGING_ALIAS" tableName="COSTCATEGORY_ENTERPRISE_XREF" >
<CONSTANT value="ENTERPRISE_KEY" datatype="VARCHAR" size="14" />
<CONSTANT value="1" datatype="INT" />
</FUNCTION_CALL>
</FUNCTION_CALL>
</DIExpression>
<DIExpression isString="true" expr="'N'" >
<CONSTANT value="N" datatype="VARCHAR" size="1" />
</DIExpression>
<DIExpression isString="true" expr="Map_Operation.SUB_CATEGORY" >
<COLUMN_REFERENCE  qualifier1="Map_Operation" column="SUB_CATEGORY" />
</DIExpression>
<DIExpression isString="true" expr="Map_Operation.DETAILED_CATEGORY" >
<COLUMN_REFERENCE  qualifier1="Map_Operation" column="DETAILED_CATEGORY" />
</DIExpression>
</DIProjection>
<DIFrom>
<DITableSpec name="Map_Operation" />
</DIFrom>
</DISelect>
<DIAttributes>
<DIAttribute name="distinct_run_as_separate_process" value="no"/>
<DIAttribute name="group_by_run_as_separate_process" value="no"/>
<DIAttribute name="join_run_as_separate_process" value="no"/>
<DIAttribute name="order_by_run_as_separate_process" value="no"/>
<DIAttribute name="run_as_separate_process" value="no"/>
</DIAttributes>
</DIQuery>

<DITransformCall typeId="111" name="Map_Operation" >
<DIInputView name="COSTCATEGORY_CSNP"  />
<DISchema name="Map_Operation" >
</DISchema>
<DIAttributes>
<DIAttribute name="delete" value="discard"/>
<DIAttribute name="insert" value="insert"/>
<DIAttribute name="normal" value="discard"/>
<DIAttribute name="update" value="discard"/>
</DIAttributes>
</DITransformCall>
<DIQuery typeId="122"  >
<DIUIOptions>
<DIAttribute name="ui_acta_from_schema_0" value="QRY_ORDER_BY_BUSINESS_KEY"/>
</DIUIOptions>
<DISchema name="Query" >
<DIElement name="MD_BUSINESS_KEY" datatype="VARCHAR" size="100" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="QRY_ORDER_BY_BUSINESS_KEY.MD_BUSINESS_KEY"/>
</DIAttributes>
</DIElement>
<DIElement name="COSTCATEGORY_NAME" datatype="VARCHAR" size="255" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="QRY_ORDER_BY_BUSINESS_KEY.COSTCATEGORY_NAME"/>
</DIAttributes>
</DIElement>
<DIElement name="COSTCATEGORY_NAME_ALT" datatype="VARCHAR" size="60" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="QRY_ORDER_BY_BUSINESS_KEY.COSTCATEGORY_NAME_ALT"/>
</DIAttributes>
</DIElement>
<DIElement name="ACCOUNTING_CODE" datatype="VARCHAR" size="60" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="QRY_ORDER_BY_BUSINESS_KEY.ACCOUNTING_CODE"/>
</DIAttributes>
</DIElement>
<DIElement name="SUB_CATEGORY" datatype="VARCHAR" size="60" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="QRY_ORDER_BY_BUSINESS_KEY.SUB_CATEGORY"/>
</DIAttributes>
</DIElement>
<DIElement name="DETAILED_CATEGORY" datatype="VARCHAR" size="60" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="QRY_ORDER_BY_BUSINESS_KEY.DETAILED_CATEGORY"/>
</DIAttributes>
</DIElement>
</DISchema>
<DISelect>
<DIProjection>
<DIExpression isString="true" expr="QRY_ORDER_BY_BUSINESS_KEY.MD_BUSINESS_KEY" >
<COLUMN_REFERENCE  qualifier1="QRY_ORDER_BY_BUSINESS_KEY" column="MD_BUSINESS_KEY" />
</DIExpression>
<DIExpression isString="true" expr="QRY_ORDER_BY_BUSINESS_KEY.COSTCATEGORY_NAME" >
<COLUMN_REFERENCE  qualifier1="QRY_ORDER_BY_BUSINESS_KEY" column="COSTCATEGORY_NAME" />
</DIExpression>
<DIExpression isString="true" expr="QRY_ORDER_BY_BUSINESS_KEY.COSTCATEGORY_NAME_ALT" >
<COLUMN_REFERENCE  qualifier1="QRY_ORDER_BY_BUSINESS_KEY" column="COSTCATEGORY_NAME_ALT" />
</DIExpression>
<DIExpression isString="true" expr="QRY_ORDER_BY_BUSINESS_KEY.ACCOUNTING_CODE" >
<COLUMN_REFERENCE  qualifier1="QRY_ORDER_BY_BUSINESS_KEY" column="ACCOUNTING_CODE" />
</DIExpression>
<DIExpression isString="true" expr="QRY_ORDER_BY_BUSINESS_KEY.SUB_CATEGORY" >
<COLUMN_REFERENCE  qualifier1="QRY_ORDER_BY_BUSINESS_KEY" column="SUB_CATEGORY" />
</DIExpression>
<DIExpression isString="true" expr="QRY_ORDER_BY_BUSINESS_KEY.DETAILED_CATEGORY" >
<COLUMN_REFERENCE  qualifier1="QRY_ORDER_BY_BUSINESS_KEY" column="DETAILED_CATEGORY" />
</DIExpression>
</DIProjection>
<DIFrom>
<DITableSpec name="QRY_ORDER_BY_BUSINESS_KEY" />
</DIFrom>
<DIOrderBys>
<DIOrderBy direction="ASC">
<DIExpression isString="true" expr="QRY_ORDER_BY_BUSINESS_KEY.MD_BUSINESS_KEY" >
<COLUMN_REFERENCE  qualifier1="QRY_ORDER_BY_BUSINESS_KEY" column="MD_BUSINESS_KEY" />
</DIExpression>
</DIOrderBy>
</DIOrderBys>
</DISelect>
<DIAttributes>
<DIAttribute name="distinct_run_as_separate_process" value="no"/>
<DIAttribute name="group_by_run_as_separate_process" value="no"/>
<DIAttribute name="join_run_as_separate_process" value="no"/>
<DIAttribute name="order_by_run_as_separate_process" value="no"/>
<DIAttribute name="run_as_separate_process" value="no"/>
</DIAttributes>
</DIQuery>

</DITransforms>
<DIAttributes>
<DIAttribute name="Cache_type" value="pageable_cache"/>
<DIAttribute name="Parallelism_degree" value="0"/>
<DIAttribute name="allows_both_input_and_output" value="yes"/>
<DIAttribute name="run_once" value="no"/>
<DIAttribute name="use_dataflow_links" value="no"/>
<DIAttribute name="use_datastore_links" value="yes"/>
<DIAttribute name="validation_xform_exists" value="no"/>
<DIAttribute name="validation_xform_stats" value="no"/>
</DIAttributes>
</DIDataflow>
<DIWorkflow name="MEASURETYPE_CON_WF" typeId="2" >
<DIVariables>
<DIElement paramType="LOCAL" name="$L_IDENTIFIER" datatype="VARCHAR" size="100" >
</DIElement>
<DIElement paramType="LOCAL" name="$L_SOURCE_XREF_ID" datatype="DECIMAL" precision="18" scale="0" >
</DIElement>
<DIElement paramType="LOCAL" name="$L_CONSOLIDATED_XREF_ID" datatype="DECIMAL" precision="18" scale="0" >
</DIElement>
<DIElement paramType="LOCAL" name="$L_SOURCE_ENTITY" datatype="VARCHAR" size="200" >
</DIElement>
<DIElement paramType="LOCAL" name="$L_CONSOLIDATED_NAME" datatype="VARCHAR" size="200" >
</DIElement>
</DIVariables>
<DISteps>
<DITryStep typeId="13" >
<DIUIOptions>
<DIAttribute name="ui_display_name" value="MEASURETYPE_CON_TRY"/>
</DIUIOptions>
<DISteps>
<DIScript>
<DIUIOptions>
<DIAttribute name="ui_display_name" value="MEASURETYPE_CON_START_SC"/>
<DIAttribute name="ui_script_text" value="# CALL FUNCTION TO TRACK START OF WORKFLOW&#xD;&#xA;$L_IDENTIFIER = workflow_name();&#xD;&#xA;ABC_STARTWF_FN($L_IDENTIFIER, $G_PROCESS_ID);&#xD;&#xA;&#xD;&#xA;&#xD;&#xA;$L_SOURCE_ENTITY = 'MEASURETYPE';&#xD;&#xA;GET_SOURCE_XREF_ID_FN($L_SOURCE_ENTITY,$L_SOURCE_XREF_ID);"/>
</DIUIOptions>
<DIAssignmentStep typeId="12" variable="$L_IDENTIFIER" >
<DIExpression isString="true" expr="workflow_name()" >
<FUNCTION_CALL name="workflow_name"  type="DI" />
</DIExpression>
</DIAssignmentStep>
<DIFunctionCallStep typeId="23" >
<DIExpression isString="true" expr="abc_startwf_fn($L_IDENTIFIER, $G_PROCESS_ID)" >
<FUNCTION_CALL name="abc_startwf_fn"  type="DI" >
<VARIABLE_REFERENCE name="$L_IDENTIFIER" />
<VARIABLE_REFERENCE name="$G_PROCESS_ID" />
</FUNCTION_CALL>
</DIExpression>
</DIFunctionCallStep>
<DIAssignmentStep typeId="12" variable="$L_SOURCE_ENTITY" >
<DIExpression isString="true" expr="'MEASURETYPE'" >
<CONSTANT value="MEASURETYPE" datatype="VARCHAR" size="11" />
</DIExpression>
</DIAssignmentStep>
<DIFunctionCallStep typeId="23" >
<DIExpression isString="true" expr="get_source_xref_id_fn($L_SOURCE_ENTITY, $L_SOURCE_XREF_ID)" >
<FUNCTION_CALL name="get_source_xref_id_fn"  type="DI" >
<VARIABLE_REFERENCE name="$L_SOURCE_ENTITY" />
<VARIABLE_REFERENCE name="$L_SOURCE_XREF_ID" />
</FUNCTION_CALL>
</DIExpression>
</DIFunctionCallStep>
</DIScript>
<DICallStep typeId="1"  calledObjectType="Dataflow" name="MEASURETYPE_CON_DF" >
<DIUIOptions>
<DIAttribute name="ParmDefaulted_01" value="FALSE"/>
<DIAttribute name="ParmDefaulted_02" value="FALSE"/>
</DIUIOptions>
<DIParameterValues>
<DIExpression isString="true" expr="$L_SOURCE_XREF_ID" >
<VARIABLE_REFERENCE name="$L_SOURCE_XREF_ID" />
</DIExpression>
<DIExpression isString="true" expr="$L_CONSOLIDATED_XREF_ID" >
<VARIABLE_REFERENCE name="$L_CONSOLIDATED_XREF_ID" />
</DIExpression>
</DIParameterValues>
</DICallStep>
<DIScript>
<DIUIOptions>
<DIAttribute name="ui_display_name" value="MEASURETYPE_CON_END_SC"/>
<DIAttribute name="ui_script_text" value="# CALL FUNCTION TO TRACK END OF WORKFLOW&#xA;ABC_ENDWF_FN($L_IDENTIFIER, $G_PROCESS_ID);"/>
</DIUIOptions>
<DIFunctionCallStep typeId="23" >
<DIExpression isString="true" expr="abc_endwf_fn($L_IDENTIFIER, $G_PROCESS_ID)" >
<FUNCTION_CALL name="abc_endwf_fn"  type="DI" >
<VARIABLE_REFERENCE name="$L_IDENTIFIER" />
<VARIABLE_REFERENCE name="$G_PROCESS_ID" />
</FUNCTION_CALL>
</DIExpression>
</DIFunctionCallStep>
</DIScript>
</DISteps>
<DICatch typeId="20" errorCode="210101" >
<DIUIOptions>
<DIAttribute name="ui_display_name" value="MEASURETYPE_CON_CATCH"/>
</DIUIOptions>
<DISteps>
<DIScript>
<DIUIOptions>
<DIAttribute name="ui_display_name" value="PERIOD_AM_CON_FAIL_SC"/>
<DIAttribute name="ui_script_text" value="# CALL FUNCTION TO TRACK FAIL OF WORKFLOW&#xA;ABC_FAILWF_FN(workflow_name(), $G_PROCESS_ID, 'Error: \[' || error_number() || '\] ' || error_message());"/>
</DIUIOptions>
<DIFunctionCallStep typeId="23" >
<DIExpression isString="true" expr="abc_failwf_fn(workflow_name(), $G_PROCESS_ID, ((('Error: \\[' || error_number()) || '\\] ') || error_message()))" >
<FUNCTION_CALL name="abc_failwf_fn"  type="DI" >
<FUNCTION_CALL name="workflow_name"  type="DI" />
<VARIABLE_REFERENCE name="$G_PROCESS_ID" />
<CONCAT>
<CONCAT>
<CONCAT>
<CONSTANT value="Error: \[" datatype="VARCHAR" size="9" />
<FUNCTION_CALL name="error_number"  type="DI" />
</CONCAT>
<CONSTANT value="\] " datatype="VARCHAR" size="3" />
</CONCAT>
<FUNCTION_CALL name="error_message"  type="DI" />
</CONCAT>
</FUNCTION_CALL>
</DIExpression>
</DIFunctionCallStep>
</DIScript>
</DISteps>
</DICatch>
</DITryStep>
</DISteps>
<DIAttributes>
<DIAttribute name="run_once" value="no"/>
<DIAttribute name="unit_of_recovery" value="no"/>
</DIAttributes>
</DIWorkflow>
<DIDataflow name="MEASURETYPE_CON_DF" typeId="1" >
<DIParameters>
<DIElement paramType="IN" name="$P_SOURCE_XREF_ID" datatype="DECIMAL" precision="18" scale="0" >
</DIElement>
<DIElement paramType="IN" name="$P_CONSOLIDATED_XREF_ID" datatype="DECIMAL" precision="18" scale="0" >
</DIElement>
</DIParameters>
<DITransforms>
<DIDatabaseTableTarget typeID="11" bulkLoader="false" datastoreName="DWSTAGING_DS" ownerName="DWSTAGING_ALIAS" tableName="MEASURETYPE_ENTERPRISE_XREF" >
<DIInputView name="Query"  />
<DIAttributes>
<DIAttribute name="LDRLiveLoad" value="no"/>
<DIAttribute name="Table_Type" value="TABLE"/>
<DIAttribute name="connection_port" value="no"/>
<DIAttribute name="ldr_configuration_enabled" value="yes"/>
<DIAttribute name="ldr_configurations" hasNestedXMLTree ="true">

<LDRConfigurations>
<LDRConfiguration database_type="Microsoft_SQL_Server" database_version="Microsoft SQL Server 2005">
<auto_correct_using_merge>Yes</auto_correct_using_merge>
<bulk_ldr_all_rows></bulk_ldr_all_rows>
<bulk_ldr_max_errors></bulk_ldr_max_errors>
<bulk_ldr_rows_per_commit></bulk_ldr_rows_per_commit>
<enable_partitioning>no</enable_partitioning>
<ignore_column_case>yes</ignore_column_case>
<ignore_columns_null>no</ignore_columns_null>
<ignore_columns_value></ignore_columns_value>
<loader_auto_correct>yes</loader_auto_correct>
<loader_bulk_load>0</loader_bulk_load>
<loader_compare_column>compare_by_name</loader_compare_column>
<loader_delete_map></loader_delete_map>
<loader_drop_and_create_table>no</loader_drop_and_create_table>
<loader_insert_map></loader_insert_map>
<loader_load_choice>append</loader_load_choice>
<loader_num_parallel_loaders>1</loader_num_parallel_loaders>
<loader_overflow_file>overflow_file</loader_overflow_file>
<loader_post_load1></loader_post_load1>
<loader_pre_load1></loader_pre_load1>
<loader_quote_names>0</loader_quote_names>
<loader_transactional>no</loader_transactional>
<loader_transactional_order>0</loader_transactional_order>
<loader_update_key_columns>no</loader_update_key_columns>
<loader_update_map></loader_update_map>
<loader_use_user_defined_keys>no</loader_use_user_defined_keys>
<loader_xact_size>1000</loader_xact_size>
<mssql_bulk_ldr_mode>append</mssql_bulk_ldr_mode>
<mssql_bulk_ldr_packet_size>4</mssql_bulk_ldr_packet_size>
<overflow_file_format>Write data</overflow_file_format>
<overriding_substitution_parameter_for_tablename></overriding_substitution_parameter_for_tablename>
<use_overflow_file>no</use_overflow_file>
<use_unicode_varchar>no</use_unicode_varchar>
<sql_text></sql_text>
</LDRConfiguration>
</LDRConfigurations>
</DIAttribute>
<DIAttribute name="loader_template_table" value="no"/>
<DIAttribute name="name" value="DWSTAGING_DS"/>
<DIAttribute name="use_unicode_varchar" value="no"/>
</DIAttributes>
</DIDatabaseTableTarget>

<DIDatabaseTableSource typeId="22" datastoreName="SRCSTAGING_DS" ownerName="SRCSTAGING_ALIAS" tableName="MEASURETYPE_EXTT_V" >
<DIOutputView name="MEASURETYPE_EXTT_V_1"  />
<DIAttributes>
<DIAttribute name="array_fetch_size" value="1000"/>
<DIAttribute name="cache" value="yes"/>
<DIAttribute name="connection_port" value="no"/>
<DIAttribute name="enable_partitioning" value="no"/>
<DIAttribute name="name" value="SRCSTAGING_DS"/>
<DIAttribute name="package_size" value="0"/>
<DIAttribute name="reader_is_DB2CDC_table" value="no"/>
<DIAttribute name="reader_overflow_file" value="overflow_file"/>
<DIAttribute name="reader_template_table" value="no"/>
<DIAttribute name="reader_use_overflow_file" value="no"/>
<DIAttribute name="reader_use_trex_transaction" value="no"/>
<DIAttribute name="table_weight" value="0"/>
</DIAttributes>
</DIDatabaseTableSource>

<DITransformCall typeId="111" name="Table_Comparison" >
<DIInputView name="QRY_SRT"  />
<DISchema name="MEASURETYPE_CSNP" >
</DISchema>
<DIAttributes>
<DIAttribute name="cache_comparison_table" value="no"/>
<DIAttribute name="database_datastore" value="DWSTAGING_DS"/>
<DIAttribute name="detect_all_dup_deletes" value="no"/>
<DIAttribute name="detect_delete" value="no"/>
<DIAttribute name="primary_key_column1" value="MD_BUSINESS_KEY"/>
<DIAttribute name="run_as_separate_process" value="no"/>
<DIAttribute name="source_is_sorted" value="yes"/>
<DIAttribute name="table_name" value="MEASURETYPE_CSNP"/>
<DIAttribute name="table_owner" value="DWSTAGING_ALIAS"/>
<DIAttribute name="update_cache" value="no"/>
</DIAttributes>
</DITransformCall>
<DITransformCall typeId="111" name="Map_Operation" >
<DIInputView name="MEASURETYPE_CSNP"  />
<DISchema name="Map_Operation" >
</DISchema>
<DIAttributes>
<DIAttribute name="delete" value="discard"/>
<DIAttribute name="insert" value="insert"/>
<DIAttribute name="normal" value="discard"/>
<DIAttribute name="update" value="discard"/>
</DIAttributes>
</DITransformCall>
<DIQuery typeId="122"  >
<DIUIOptions>
<DIAttribute name="ui_acta_from_schema_0" value="Query_2"/>
</DIUIOptions>
<DISchema name="Query" >
<DIElement name="ENTERPRISE_XREF_ID" datatype="DECIMAL" precision="18" scale="0" key="true" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="greatest(5+gen_row_num(),key_generation('DWSTAGING_DS.DWSTAGING_ALIAS.MEASURETYPE_ENTERPRISE_XREF', 'ENTERPRISE_XREF_ID', 1))&#xA; &#xA;"/>
</DIAttributes>
</DIElement>
<DIElement name="ENTERPRISE_KEY" datatype="DECIMAL" precision="18" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="Query_2.MD_ENTERPRISE_KEY"/>
</DIAttributes>
</DIElement>
<DIElement name="SOURCE_INTEGRATION_XREF_ID" datatype="DECIMAL" precision="18" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="$P_SOURCE_XREF_ID&#xA; &#xA;"/>
</DIAttributes>
</DIElement>
<DIElement name="BUSINESS_KEYVALUE" datatype="VARCHAR" size="100" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="Query_2.MD_BUSINESS_KEY&#xA; &#xA;"/>
</DIAttributes>
</DIElement>
<DIElement name="UPDATE_STATUS" datatype="VARCHAR" size="10" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="'INSERT'&#xA; &#xA;"/>
</DIAttributes>
</DIElement>
<DIElement name="CREATEDDATETIME" datatype="DATETIME" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="$G_MODDATE_LOC&#xA; &#xA;"/>
</DIAttributes>
</DIElement>
<DIElement name="MODIFIEDDATETIME" datatype="DATETIME" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="$G_MODDATE_LOC &#xA; &#xA;"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_BATCH_ID" datatype="DECIMAL" precision="19" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="$G_BATCH_ID&#xA; &#xA;"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_PROCESS_ID" datatype="DECIMAL" precision="19" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="$G_PROCESS_ID&#xA; &#xA;"/>
</DIAttributes>
</DIElement>
</DISchema>
<DISelect>
<DIProjection>
<DIExpression isString="true" expr="greatest((5 + gen_row_num()), key_generation(DWSTAGING_DS.DWSTAGING_ALIAS.MEASURETYPE_ENTERPRISE_XREF, 'ENTERPRISE_XREF_ID', 1) )" >
<FUNCTION_CALL name="greatest"  type="DI" >
<ADD>
<CONSTANT value="5" datatype="INT" />
<FUNCTION_CALL name="gen_row_num"  type="DI" />
</ADD>
<FUNCTION_CALL name="key_generation"  type="DI" tableDatastore="DWSTAGING_DS" tableOwner="DWSTAGING_ALIAS" tableName="MEASURETYPE_ENTERPRISE_XREF" >
<CONSTANT value="ENTERPRISE_XREF_ID" datatype="VARCHAR" size="18" />
<CONSTANT value="1" datatype="INT" />
</FUNCTION_CALL>
</FUNCTION_CALL>
</DIExpression>
<DIExpression isString="true" expr="Query_2.MD_ENTERPRISE_KEY" >
<COLUMN_REFERENCE  qualifier1="Query_2" column="MD_ENTERPRISE_KEY" />
</DIExpression>
<DIExpression isString="true" expr="$P_SOURCE_XREF_ID" >
<VARIABLE_REFERENCE name="$P_SOURCE_XREF_ID" />
</DIExpression>
<DIExpression isString="true" expr="Query_2.MD_BUSINESS_KEY" >
<COLUMN_REFERENCE  qualifier1="Query_2" column="MD_BUSINESS_KEY" />
</DIExpression>
<DIExpression isString="true" expr="'INSERT'" >
<CONSTANT value="INSERT" datatype="VARCHAR" size="6" />
</DIExpression>
<DIExpression isString="true" expr="$G_MODDATE_LOC" >
<VARIABLE_REFERENCE name="$G_MODDATE_LOC" />
</DIExpression>
<DIExpression isString="true" expr="$G_MODDATE_LOC" >
<VARIABLE_REFERENCE name="$G_MODDATE_LOC" />
</DIExpression>
<DIExpression isString="true" expr="$G_BATCH_ID" >
<VARIABLE_REFERENCE name="$G_BATCH_ID" />
</DIExpression>
<DIExpression isString="true" expr="$G_PROCESS_ID" >
<VARIABLE_REFERENCE name="$G_PROCESS_ID" />
</DIExpression>
</DIProjection>
<DIFrom>
<DITableSpec name="Query_2" />
</DIFrom>
</DISelect>
<DIAttributes>
<DIAttribute name="distinct_run_as_separate_process" value="no"/>
<DIAttribute name="group_by_run_as_separate_process" value="no"/>
<DIAttribute name="join_run_as_separate_process" value="no"/>
<DIAttribute name="order_by_run_as_separate_process" value="no"/>
<DIAttribute name="run_as_separate_process" value="no"/>
</DIAttributes>
</DIQuery>

<DITransformCall typeId="111" name="Map_Operation" >
<DIInputView name="MEASURETYPE_CSNP"  />
<DISchema name="Map_Operation_1" >
</DISchema>
<DIAttributes>
<DIAttribute name="delete" value="discard"/>
<DIAttribute name="insert" value="discard"/>
<DIAttribute name="normal" value="discard"/>
<DIAttribute name="update" value="update"/>
</DIAttributes>
</DITransformCall>
<DIQuery typeId="122"  >
<DIUIOptions>
<DIAttribute name="ui_acta_from_schema_0" value="Map_Operation_1"/>
</DIUIOptions>
<DISchema name="Query_1" >
<DIElement name="MD_BATCH_ID" datatype="DECIMAL" precision="19" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="$G_BATCH_ID"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_PROCESS_ID" datatype="DECIMAL" precision="19" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="$G_PROCESS_ID"/>
</DIAttributes>
</DIElement>
<DIElement name="DESCRIPTION" datatype="VARCHAR" size="60" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="Map_Operation_1.DESCRIPTION"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_BUSINESS_KEY" datatype="VARCHAR" size="100" key="true" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="Map_Operation_1.MD_BUSINESS_KEY"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_ENTERPRISE_KEY" datatype="DECIMAL" precision="18" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="Map_Operation_1.MD_ENTERPRISE_KEY"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_FLAG" datatype="VARCHAR" size="10" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="$G_FLAG_UPDATE "/>
</DIAttributes>
</DIElement>
<DIElement name="MEASURETYPE_NAME" datatype="VARCHAR" size="60" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="Map_Operation_1.MEASURETYPE_NAME"/>
</DIAttributes>
</DIElement>
</DISchema>
<DISelect>
<DIProjection>
<DIExpression isString="true" expr="$G_BATCH_ID" >
<VARIABLE_REFERENCE name="$G_BATCH_ID" />
</DIExpression>
<DIExpression isString="true" expr="$G_PROCESS_ID" >
<VARIABLE_REFERENCE name="$G_PROCESS_ID" />
</DIExpression>
<DIExpression isString="true" expr="Map_Operation_1.DESCRIPTION" >
<COLUMN_REFERENCE  qualifier1="Map_Operation_1" column="DESCRIPTION" />
</DIExpression>
<DIExpression isString="true" expr="Map_Operation_1.MD_BUSINESS_KEY" >
<COLUMN_REFERENCE  qualifier1="Map_Operation_1" column="MD_BUSINESS_KEY" />
</DIExpression>
<DIExpression isString="true" expr="Map_Operation_1.MD_ENTERPRISE_KEY" >
<COLUMN_REFERENCE  qualifier1="Map_Operation_1" column="MD_ENTERPRISE_KEY" />
</DIExpression>
<DIExpression isString="true" expr="$G_FLAG_UPDATE" >
<VARIABLE_REFERENCE name="$G_FLAG_UPDATE" />
</DIExpression>
<DIExpression isString="true" expr="Map_Operation_1.MEASURETYPE_NAME" >
<COLUMN_REFERENCE  qualifier1="Map_Operation_1" column="MEASURETYPE_NAME" />
</DIExpression>
</DIProjection>
<DIFrom>
<DITableSpec name="Map_Operation_1" />
</DIFrom>
</DISelect>
<DIAttributes>
<DIAttribute name="distinct_run_as_separate_process" value="no"/>
<DIAttribute name="group_by_run_as_separate_process" value="no"/>
<DIAttribute name="join_run_as_separate_process" value="no"/>
<DIAttribute name="order_by_run_as_separate_process" value="no"/>
<DIAttribute name="run_as_separate_process" value="no"/>
</DIAttributes>
</DIQuery>

<DIQuery typeId="122"  >
<DIUIOptions>
<DIAttribute name="ui_acta_from_schema_0" value="Map_Operation"/>
</DIUIOptions>
<DISchema name="Query_2" >
<DIElement name="MD_BATCH_ID" datatype="DECIMAL" precision="19" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="$G_BATCH_ID "/>
</DIAttributes>
</DIElement>
<DIElement name="MD_PROCESS_ID" datatype="DECIMAL" precision="19" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="$G_PROCESS_ID"/>
</DIAttributes>
</DIElement>
<DIElement name="DESCRIPTION" datatype="VARCHAR" size="60" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="Map_Operation.DESCRIPTION"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_BUSINESS_KEY" datatype="VARCHAR" size="100" key="true" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="Map_Operation.MD_BUSINESS_KEY"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_ENTERPRISE_KEY" datatype="DECIMAL" precision="18" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="greatest(5+gen_row_num(),key_generation('DWSTAGING_DS.DWSTAGING_ALIAS.MEASURETYPE_ENTERPRISE_XREF', 'ENTERPRISE_KEY',1))"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_FLAG" datatype="VARCHAR" size="10" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="$G_FLAG_NEW "/>
</DIAttributes>
</DIElement>
<DIElement name="MEASURETYPE_NAME" datatype="VARCHAR" size="60" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="Map_Operation.MEASURETYPE_NAME"/>
</DIAttributes>
</DIElement>
</DISchema>
<DISelect>
<DIProjection>
<DIExpression isString="true" expr="$G_BATCH_ID" >
<VARIABLE_REFERENCE name="$G_BATCH_ID" />
</DIExpression>
<DIExpression isString="true" expr="$G_PROCESS_ID" >
<VARIABLE_REFERENCE name="$G_PROCESS_ID" />
</DIExpression>
<DIExpression isString="true" expr="Map_Operation.DESCRIPTION" >
<COLUMN_REFERENCE  qualifier1="Map_Operation" column="DESCRIPTION" />
</DIExpression>
<DIExpression isString="true" expr="Map_Operation.MD_BUSINESS_KEY" >
<COLUMN_REFERENCE  qualifier1="Map_Operation" column="MD_BUSINESS_KEY" />
</DIExpression>
<DIExpression isString="true" expr="greatest((5 + gen_row_num()), key_generation(DWSTAGING_DS.DWSTAGING_ALIAS.MEASURETYPE_ENTERPRISE_XREF, 'ENTERPRISE_KEY', 1) )" >
<FUNCTION_CALL name="greatest"  type="DI" >
<ADD>
<CONSTANT value="5" datatype="INT" />
<FUNCTION_CALL name="gen_row_num"  type="DI" />
</ADD>
<FUNCTION_CALL name="key_generation"  type="DI" tableDatastore="DWSTAGING_DS" tableOwner="DWSTAGING_ALIAS" tableName="MEASURETYPE_ENTERPRISE_XREF" >
<CONSTANT value="ENTERPRISE_KEY" datatype="VARCHAR" size="14" />
<CONSTANT value="1" datatype="INT" />
</FUNCTION_CALL>
</FUNCTION_CALL>
</DIExpression>
<DIExpression isString="true" expr="$G_FLAG_NEW" >
<VARIABLE_REFERENCE name="$G_FLAG_NEW" />
</DIExpression>
<DIExpression isString="true" expr="Map_Operation.MEASURETYPE_NAME" >
<COLUMN_REFERENCE  qualifier1="Map_Operation" column="MEASURETYPE_NAME" />
</DIExpression>
</DIProjection>
<DIFrom>
<DITableSpec name="Map_Operation" />
</DIFrom>
</DISelect>
<DIAttributes>
<DIAttribute name="distinct_run_as_separate_process" value="no"/>
<DIAttribute name="group_by_run_as_separate_process" value="no"/>
<DIAttribute name="join_run_as_separate_process" value="no"/>
<DIAttribute name="order_by_run_as_separate_process" value="no"/>
<DIAttribute name="run_as_separate_process" value="no"/>
</DIAttributes>
</DIQuery>

<DITransformCall typeId="111" name="Merge" >
<DIInputView name="Query_1"  />
<DIInputView name="Query_2"  />
<DISchema name="Merge" >
</DISchema>
</DITransformCall>
<DIDatabaseTableTarget typeID="11" bulkLoader="false" datastoreName="DWSTAGING_DS" ownerName="DWSTAGING_ALIAS" tableName="MEASURETYPE_MSC" >
<DIInputView name="Merge"  />
<DIAttributes>
<DIAttribute name="LDRLiveLoad" value="no"/>
<DIAttribute name="Table_Type" value="TABLE"/>
<DIAttribute name="connection_port" value="no"/>
<DIAttribute name="ldr_configuration_enabled" value="yes"/>
<DIAttribute name="ldr_configurations" hasNestedXMLTree ="true">

<LDRConfigurations>
<LDRConfiguration database_type="Microsoft_SQL_Server" database_version="Microsoft SQL Server 2005">
<auto_correct_using_merge>Yes</auto_correct_using_merge>
<bulk_ldr_all_rows></bulk_ldr_all_rows>
<bulk_ldr_max_errors></bulk_ldr_max_errors>
<bulk_ldr_rows_per_commit>1000</bulk_ldr_rows_per_commit>
<enable_partitioning>no</enable_partitioning>
<ignore_column_case>yes</ignore_column_case>
<ignore_columns_null>No</ignore_columns_null>
<ignore_columns_value></ignore_columns_value>
<loader_auto_correct>No</loader_auto_correct>
<loader_bulk_load>1</loader_bulk_load>
<loader_compare_column>Compare by name</loader_compare_column>
<loader_delete_map></loader_delete_map>
<loader_drop_and_create_table>no</loader_drop_and_create_table>
<loader_insert_map></loader_insert_map>
<loader_load_choice>append</loader_load_choice>
<loader_num_parallel_loaders>1</loader_num_parallel_loaders>
<loader_overflow_file>overflow_file</loader_overflow_file>
<loader_post_load1></loader_post_load1>
<loader_pre_load1></loader_pre_load1>
<loader_quote_names>0</loader_quote_names>
<loader_transactional>no</loader_transactional>
<loader_transactional_order>0</loader_transactional_order>
<loader_update_key_columns>No</loader_update_key_columns>
<loader_update_map></loader_update_map>
<loader_use_user_defined_keys>No</loader_use_user_defined_keys>
<loader_xact_size>1000</loader_xact_size>
<mssql_bulk_ldr_mode>truncate</mssql_bulk_ldr_mode>
<mssql_bulk_ldr_packet_size>4</mssql_bulk_ldr_packet_size>
<overflow_file_format>Write data</overflow_file_format>
<overriding_substitution_parameter_for_tablename></overriding_substitution_parameter_for_tablename>
<use_overflow_file>No</use_overflow_file>
<use_unicode_varchar>no</use_unicode_varchar>
<sql_text></sql_text>
</LDRConfiguration>
</LDRConfigurations>
</DIAttribute>
<DIAttribute name="loader_template_table" value="no"/>
<DIAttribute name="name" value="DWSTAGING_DS"/>
<DIAttribute name="use_unicode_varchar" value="no"/>
</DIAttributes>
</DIDatabaseTableTarget>

<DIQuery typeId="122"  >
<DIUIOptions>
<DIAttribute name="ui_acta_from_schema_0" value="MEASURETYPE_EXTT_V_1"/>
<DIAttribute name="ui_display_name" value="QRY_SRT"/>
</DIUIOptions>
<DISchema name="QRY_SRT" >
<DIElement name="MD_BUSINESS_KEY" datatype="VARCHAR" size="100" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="MEASURETYPE_EXTT_V_1.MD_BUSINESS_KEY"/>
</DIAttributes>
</DIElement>
<DIElement name="MEASURETYPE_NAME" datatype="VARCHAR" size="60" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="MEASURETYPE_EXTT_V_1.MEASURETYPE_NAME"/>
</DIAttributes>
</DIElement>
<DIElement name="DESCRIPTION" datatype="VARCHAR" size="60" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="MEASURETYPE_EXTT_V_1.DESCRIPTION"/>
</DIAttributes>
</DIElement>
</DISchema>
<DISelect>
<DIProjection>
<DIExpression isString="true" expr="MEASURETYPE_EXTT_V_1.MD_BUSINESS_KEY" >
<COLUMN_REFERENCE  qualifier1="MEASURETYPE_EXTT_V_1" column="MD_BUSINESS_KEY" />
</DIExpression>
<DIExpression isString="true" expr="MEASURETYPE_EXTT_V_1.MEASURETYPE_NAME" >
<COLUMN_REFERENCE  qualifier1="MEASURETYPE_EXTT_V_1" column="MEASURETYPE_NAME" />
</DIExpression>
<DIExpression isString="true" expr="MEASURETYPE_EXTT_V_1.DESCRIPTION" >
<COLUMN_REFERENCE  qualifier1="MEASURETYPE_EXTT_V_1" column="DESCRIPTION" />
</DIExpression>
</DIProjection>
<DIFrom>
<DITableSpec name="MEASURETYPE_EXTT_V_1" />
</DIFrom>
<DIOrderBys>
<DIOrderBy direction="ASC">
<DIExpression isString="true" expr="MEASURETYPE_EXTT_V_1.MD_BUSINESS_KEY" >
<COLUMN_REFERENCE  qualifier1="MEASURETYPE_EXTT_V_1" column="MD_BUSINESS_KEY" />
</DIExpression>
</DIOrderBy>
</DIOrderBys>
</DISelect>
<DIAttributes>
<DIAttribute name="distinct_run_as_separate_process" value="no"/>
<DIAttribute name="group_by_run_as_separate_process" value="no"/>
<DIAttribute name="join_run_as_separate_process" value="no"/>
<DIAttribute name="order_by_run_as_separate_process" value="no"/>
<DIAttribute name="run_as_separate_process" value="no"/>
</DIAttributes>
</DIQuery>

</DITransforms>
<DIAttributes>
<DIAttribute name="Audit" hasNestedXMLTree ="true">

<Audit>
<AuditObjects>
</AuditObjects>
<AuditRules>
</AuditRules>
<Notifications>
<RaiseException Enabled="true" >
</RaiseException>
<Mail Enabled="false" ></Mail>
<Script Enabled="false" ></Script>
</Notifications>
</Audit>

</DIAttribute>
<DIAttribute name="Cache_type" value="pageable_cache"/>
<DIAttribute name="Parallelism_degree" value="0"/>
<DIAttribute name="allows_both_input_and_output" value="yes"/>
<DIAttribute name="run_once" value="no"/>
<DIAttribute name="use_dataflow_links" value="no"/>
<DIAttribute name="use_datastore_links" value="yes"/>
<DIAttribute name="validation_xform_exists" value="no"/>
<DIAttribute name="validation_xform_stats" value="no"/>
</DIAttributes>
</DIDataflow>
<DIWorkflow name="STATUS_CON_WF" typeId="2" >
<DIVariables>
<DIElement paramType="LOCAL" name="$L_IDENTIFIER" datatype="VARCHAR" size="100" >
</DIElement>
<DIElement paramType="LOCAL" name="$L_SOURCE_XREF_ID" datatype="DECIMAL" precision="18" scale="0" >
</DIElement>
<DIElement paramType="LOCAL" name="$L_CONSOLIDATED_XREF_ID" datatype="DECIMAL" precision="18" scale="0" >
</DIElement>
<DIElement paramType="LOCAL" name="$L_SOURCE_ENTITY" datatype="VARCHAR" size="200" >
</DIElement>
<DIElement paramType="LOCAL" name="$L_CONSOLIDATED_NAME" datatype="VARCHAR" size="200" >
</DIElement>
</DIVariables>
<DISteps>
<DITryStep typeId="13" >
<DIUIOptions>
<DIAttribute name="ui_display_name" value="STATUS_CON_TRY"/>
</DIUIOptions>
<DISteps>
<DIScript>
<DIUIOptions>
<DIAttribute name="ui_display_name" value="STATUS_CON_START_SC"/>
<DIAttribute name="ui_script_text" value="# CALL FUNCTION TO TRACK START OF WORKFLOW&#xD;&#xA;$L_IDENTIFIER = workflow_name();&#xD;&#xA;ABC_STARTWF_FN($L_IDENTIFIER, $G_PROCESS_ID);&#xD;&#xA;&#xD;&#xA;&#xD;&#xA;$L_SOURCE_ENTITY = 'STATUS';&#xD;&#xA;GET_SOURCE_XREF_ID_FN($L_SOURCE_ENTITY,$L_SOURCE_XREF_ID);"/>
</DIUIOptions>
<DIAssignmentStep typeId="12" variable="$L_IDENTIFIER" >
<DIExpression isString="true" expr="workflow_name()" >
<FUNCTION_CALL name="workflow_name"  type="DI" />
</DIExpression>
</DIAssignmentStep>
<DIFunctionCallStep typeId="23" >
<DIExpression isString="true" expr="abc_startwf_fn($L_IDENTIFIER, $G_PROCESS_ID)" >
<FUNCTION_CALL name="abc_startwf_fn"  type="DI" >
<VARIABLE_REFERENCE name="$L_IDENTIFIER" />
<VARIABLE_REFERENCE name="$G_PROCESS_ID" />
</FUNCTION_CALL>
</DIExpression>
</DIFunctionCallStep>
<DIAssignmentStep typeId="12" variable="$L_SOURCE_ENTITY" >
<DIExpression isString="true" expr="'STATUS'" >
<CONSTANT value="STATUS" datatype="VARCHAR" size="6" />
</DIExpression>
</DIAssignmentStep>
<DIFunctionCallStep typeId="23" >
<DIExpression isString="true" expr="get_source_xref_id_fn($L_SOURCE_ENTITY, $L_SOURCE_XREF_ID)" >
<FUNCTION_CALL name="get_source_xref_id_fn"  type="DI" >
<VARIABLE_REFERENCE name="$L_SOURCE_ENTITY" />
<VARIABLE_REFERENCE name="$L_SOURCE_XREF_ID" />
</FUNCTION_CALL>
</DIExpression>
</DIFunctionCallStep>
</DIScript>
<DICallStep typeId="1"  calledObjectType="Dataflow" name="STATUS_CON_DF" >
<DIUIOptions>
<DIAttribute name="ParmDefaulted_01" value="FALSE"/>
<DIAttribute name="ParmDefaulted_02" value="FALSE"/>
</DIUIOptions>
<DIParameterValues>
<DIExpression isString="true" expr="$L_SOURCE_XREF_ID" >
<VARIABLE_REFERENCE name="$L_SOURCE_XREF_ID" />
</DIExpression>
<DIExpression isString="true" expr="$L_CONSOLIDATED_XREF_ID" >
<VARIABLE_REFERENCE name="$L_CONSOLIDATED_XREF_ID" />
</DIExpression>
</DIParameterValues>
</DICallStep>
<DIScript>
<DIUIOptions>
<DIAttribute name="ui_display_name" value="STATUS_CON_END_SC"/>
<DIAttribute name="ui_script_text" value="# CALL FUNCTION TO TRACK END OF WORKFLOW&#xA;ABC_ENDWF_FN($L_IDENTIFIER, $G_PROCESS_ID);"/>
</DIUIOptions>
<DIFunctionCallStep typeId="23" >
<DIExpression isString="true" expr="abc_endwf_fn($L_IDENTIFIER, $G_PROCESS_ID)" >
<FUNCTION_CALL name="abc_endwf_fn"  type="DI" >
<VARIABLE_REFERENCE name="$L_IDENTIFIER" />
<VARIABLE_REFERENCE name="$G_PROCESS_ID" />
</FUNCTION_CALL>
</DIExpression>
</DIFunctionCallStep>
</DIScript>
</DISteps>
<DICatch typeId="20" errorCode="210101" >
<DIUIOptions>
<DIAttribute name="ui_display_name" value="STATUS_CON_CATCH"/>
</DIUIOptions>
<DISteps>
<DIScript>
<DIUIOptions>
<DIAttribute name="ui_display_name" value="PERIOD_AM_CON_FAIL_SC"/>
<DIAttribute name="ui_script_text" value="# CALL FUNCTION TO TRACK FAIL OF WORKFLOW&#xA;ABC_FAILWF_FN(workflow_name(), $G_PROCESS_ID, 'Error: \[' || error_number() || '\] ' || error_message());"/>
</DIUIOptions>
<DIFunctionCallStep typeId="23" >
<DIExpression isString="true" expr="abc_failwf_fn(workflow_name(), $G_PROCESS_ID, ((('Error: \\[' || error_number()) || '\\] ') || error_message()))" >
<FUNCTION_CALL name="abc_failwf_fn"  type="DI" >
<FUNCTION_CALL name="workflow_name"  type="DI" />
<VARIABLE_REFERENCE name="$G_PROCESS_ID" />
<CONCAT>
<CONCAT>
<CONCAT>
<CONSTANT value="Error: \[" datatype="VARCHAR" size="9" />
<FUNCTION_CALL name="error_number"  type="DI" />
</CONCAT>
<CONSTANT value="\] " datatype="VARCHAR" size="3" />
</CONCAT>
<FUNCTION_CALL name="error_message"  type="DI" />
</CONCAT>
</FUNCTION_CALL>
</DIExpression>
</DIFunctionCallStep>
</DIScript>
</DISteps>
</DICatch>
</DITryStep>
</DISteps>
<DIAttributes>
<DIAttribute name="run_once" value="no"/>
<DIAttribute name="unit_of_recovery" value="no"/>
</DIAttributes>
</DIWorkflow>
<DIDataflow name="STATUS_CON_DF" typeId="1" >
<DIParameters>
<DIElement paramType="IN" name="$P_SOURCE_XREF_ID" datatype="DECIMAL" precision="18" scale="0" >
</DIElement>
<DIElement paramType="IN" name="$P_CONSOLIDATED_XREF_ID" datatype="DECIMAL" precision="18" scale="0" >
</DIElement>
</DIParameters>
<DITransforms>
<DIDatabaseTableTarget typeID="11" bulkLoader="false" datastoreName="DWSTAGING_DS" ownerName="DWSTAGING_ALIAS" tableName="STATUS_ENTERPRISE_XREF" >
<DIInputView name="Query"  />
<DIAttributes>
<DIAttribute name="LDRLiveLoad" value="no"/>
<DIAttribute name="Table_Type" value="TABLE"/>
<DIAttribute name="connection_port" value="no"/>
<DIAttribute name="ldr_configuration_enabled" value="yes"/>
<DIAttribute name="ldr_configurations" hasNestedXMLTree ="true">

<LDRConfigurations>
<LDRConfiguration database_type="Microsoft_SQL_Server" database_version="Microsoft SQL Server 2005">
<auto_correct_using_merge>Yes</auto_correct_using_merge>
<bulk_ldr_all_rows></bulk_ldr_all_rows>
<bulk_ldr_max_errors></bulk_ldr_max_errors>
<bulk_ldr_rows_per_commit></bulk_ldr_rows_per_commit>
<enable_partitioning>no</enable_partitioning>
<ignore_column_case>yes</ignore_column_case>
<ignore_columns_null>no</ignore_columns_null>
<ignore_columns_value></ignore_columns_value>
<loader_auto_correct>yes</loader_auto_correct>
<loader_bulk_load>0</loader_bulk_load>
<loader_compare_column>compare_by_name</loader_compare_column>
<loader_delete_map></loader_delete_map>
<loader_drop_and_create_table>no</loader_drop_and_create_table>
<loader_insert_map></loader_insert_map>
<loader_load_choice>append</loader_load_choice>
<loader_num_parallel_loaders>1</loader_num_parallel_loaders>
<loader_overflow_file>overflow_file</loader_overflow_file>
<loader_post_load1></loader_post_load1>
<loader_pre_load1></loader_pre_load1>
<loader_quote_names>0</loader_quote_names>
<loader_transactional>no</loader_transactional>
<loader_transactional_order>0</loader_transactional_order>
<loader_update_key_columns>no</loader_update_key_columns>
<loader_update_map></loader_update_map>
<loader_use_user_defined_keys>no</loader_use_user_defined_keys>
<loader_xact_size>1000</loader_xact_size>
<mssql_bulk_ldr_mode>append</mssql_bulk_ldr_mode>
<mssql_bulk_ldr_packet_size>4</mssql_bulk_ldr_packet_size>
<overflow_file_format>Write data</overflow_file_format>
<overriding_substitution_parameter_for_tablename></overriding_substitution_parameter_for_tablename>
<use_overflow_file>no</use_overflow_file>
<use_unicode_varchar>no</use_unicode_varchar>
<sql_text></sql_text>
</LDRConfiguration>
</LDRConfigurations>
</DIAttribute>
<DIAttribute name="loader_template_table" value="no"/>
<DIAttribute name="name" value="DWSTAGING_DS"/>
<DIAttribute name="use_unicode_varchar" value="no"/>
</DIAttributes>
</DIDatabaseTableTarget>

<DIDatabaseTableSource typeId="22" datastoreName="SRCSTAGING_DS" ownerName="SRCSTAGING_ALIAS" tableName="STATUS_EXTT_V" >
<DIOutputView name="STATUS_EXTT_V_1"  />
<DIAttributes>
<DIAttribute name="array_fetch_size" value="1000"/>
<DIAttribute name="cache" value="yes"/>
<DIAttribute name="connection_port" value="no"/>
<DIAttribute name="enable_partitioning" value="no"/>
<DIAttribute name="name" value="SRCSTAGING_DS"/>
<DIAttribute name="package_size" value="0"/>
<DIAttribute name="reader_is_DB2CDC_table" value="no"/>
<DIAttribute name="reader_overflow_file" value="overflow_file"/>
<DIAttribute name="reader_template_table" value="no"/>
<DIAttribute name="reader_use_overflow_file" value="no"/>
<DIAttribute name="reader_use_trex_transaction" value="no"/>
<DIAttribute name="table_weight" value="0"/>
</DIAttributes>
</DIDatabaseTableSource>

<DITransformCall typeId="111" name="Table_Comparison" >
<DIInputView name="QRY_SRT"  />
<DISchema name="STATUS_CSNP" >
</DISchema>
<DIAttributes>
<DIAttribute name="cache_comparison_table" value="no"/>
<DIAttribute name="database_datastore" value="DWSTAGING_DS"/>
<DIAttribute name="detect_all_dup_deletes" value="no"/>
<DIAttribute name="detect_delete" value="no"/>
<DIAttribute name="primary_key_column1" value="MD_BUSINESS_KEY"/>
<DIAttribute name="run_as_separate_process" value="no"/>
<DIAttribute name="source_is_sorted" value="yes"/>
<DIAttribute name="table_name" value="STATUS_CSNP"/>
<DIAttribute name="table_owner" value="DWSTAGING_ALIAS"/>
<DIAttribute name="update_cache" value="no"/>
</DIAttributes>
</DITransformCall>
<DITransformCall typeId="111" name="Map_Operation" >
<DIInputView name="STATUS_CSNP"  />
<DISchema name="Map_Operation" >
</DISchema>
<DIAttributes>
<DIAttribute name="delete" value="discard"/>
<DIAttribute name="insert" value="insert"/>
<DIAttribute name="normal" value="discard"/>
<DIAttribute name="update" value="discard"/>
</DIAttributes>
</DITransformCall>
<DIQuery typeId="122"  >
<DIUIOptions>
<DIAttribute name="ui_acta_from_schema_0" value="Query_2"/>
</DIUIOptions>
<DISchema name="Query" >
<DIElement name="ENTERPRISE_XREF_ID" datatype="DECIMAL" precision="18" scale="0" key="true" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="greatest(5+gen_row_num(),key_generation('DWSTAGING_DS.DWSTAGING_ALIAS.STATUS_ENTERPRISE_XREF', 'ENTERPRISE_XREF_ID', 1))&#xA; &#xA;"/>
</DIAttributes>
</DIElement>
<DIElement name="ENTERPRISE_KEY" datatype="DECIMAL" precision="18" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="Query_2.MD_ENTERPRISE_KEY"/>
</DIAttributes>
</DIElement>
<DIElement name="SOURCE_INTEGRATION_XREF_ID" datatype="DECIMAL" precision="18" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="$P_SOURCE_XREF_ID&#xA; &#xA;"/>
</DIAttributes>
</DIElement>
<DIElement name="BUSINESS_KEYVALUE" datatype="VARCHAR" size="100" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="Query_2.MD_BUSINESS_KEY&#xA; &#xA;"/>
</DIAttributes>
</DIElement>
<DIElement name="UPDATE_STATUS" datatype="VARCHAR" size="10" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="'INSERT'&#xA; &#xA;"/>
</DIAttributes>
</DIElement>
<DIElement name="CREATEDDATETIME" datatype="DATETIME" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="$G_MODDATE_LOC&#xA; &#xA;"/>
</DIAttributes>
</DIElement>
<DIElement name="MODIFIEDDATETIME" datatype="DATETIME" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="$G_MODDATE_LOC &#xA; &#xA;"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_BATCH_ID" datatype="DECIMAL" precision="19" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="$G_BATCH_ID&#xA; &#xA;"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_PROCESS_ID" datatype="DECIMAL" precision="19" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="$G_PROCESS_ID&#xA; &#xA;"/>
</DIAttributes>
</DIElement>
</DISchema>
<DISelect>
<DIProjection>
<DIExpression isString="true" expr="greatest((5 + gen_row_num()), key_generation(DWSTAGING_DS.DWSTAGING_ALIAS.STATUS_ENTERPRISE_XREF, 'ENTERPRISE_XREF_ID', 1) )" >
<FUNCTION_CALL name="greatest"  type="DI" >
<ADD>
<CONSTANT value="5" datatype="INT" />
<FUNCTION_CALL name="gen_row_num"  type="DI" />
</ADD>
<FUNCTION_CALL name="key_generation"  type="DI" tableDatastore="DWSTAGING_DS" tableOwner="DWSTAGING_ALIAS" tableName="STATUS_ENTERPRISE_XREF" >
<CONSTANT value="ENTERPRISE_XREF_ID" datatype="VARCHAR" size="18" />
<CONSTANT value="1" datatype="INT" />
</FUNCTION_CALL>
</FUNCTION_CALL>
</DIExpression>
<DIExpression isString="true" expr="Query_2.MD_ENTERPRISE_KEY" >
<COLUMN_REFERENCE  qualifier1="Query_2" column="MD_ENTERPRISE_KEY" />
</DIExpression>
<DIExpression isString="true" expr="$P_SOURCE_XREF_ID" >
<VARIABLE_REFERENCE name="$P_SOURCE_XREF_ID" />
</DIExpression>
<DIExpression isString="true" expr="Query_2.MD_BUSINESS_KEY" >
<COLUMN_REFERENCE  qualifier1="Query_2" column="MD_BUSINESS_KEY" />
</DIExpression>
<DIExpression isString="true" expr="'INSERT'" >
<CONSTANT value="INSERT" datatype="VARCHAR" size="6" />
</DIExpression>
<DIExpression isString="true" expr="$G_MODDATE_LOC" >
<VARIABLE_REFERENCE name="$G_MODDATE_LOC" />
</DIExpression>
<DIExpression isString="true" expr="$G_MODDATE_LOC" >
<VARIABLE_REFERENCE name="$G_MODDATE_LOC" />
</DIExpression>
<DIExpression isString="true" expr="$G_BATCH_ID" >
<VARIABLE_REFERENCE name="$G_BATCH_ID" />
</DIExpression>
<DIExpression isString="true" expr="$G_PROCESS_ID" >
<VARIABLE_REFERENCE name="$G_PROCESS_ID" />
</DIExpression>
</DIProjection>
<DIFrom>
<DITableSpec name="Query_2" />
</DIFrom>
</DISelect>
<DIAttributes>
<DIAttribute name="distinct_run_as_separate_process" value="no"/>
<DIAttribute name="group_by_run_as_separate_process" value="no"/>
<DIAttribute name="join_run_as_separate_process" value="no"/>
<DIAttribute name="order_by_run_as_separate_process" value="no"/>
<DIAttribute name="run_as_separate_process" value="no"/>
</DIAttributes>
</DIQuery>

<DITransformCall typeId="111" name="Map_Operation" >
<DIInputView name="STATUS_CSNP"  />
<DISchema name="Map_Operation_1" >
</DISchema>
<DIAttributes>
<DIAttribute name="delete" value="discard"/>
<DIAttribute name="insert" value="discard"/>
<DIAttribute name="normal" value="discard"/>
<DIAttribute name="update" value="update"/>
</DIAttributes>
</DITransformCall>
<DIQuery typeId="122"  >
<DIUIOptions>
<DIAttribute name="ui_acta_from_schema_0" value="Map_Operation_1"/>
</DIUIOptions>
<DISchema name="Query_1" >
<DIElement name="MD_BATCH_ID" datatype="DECIMAL" precision="19" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="$G_BATCH_ID"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_PROCESS_ID" datatype="DECIMAL" precision="19" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="$G_PROCESS_ID"/>
</DIAttributes>
</DIElement>
<DIElement name="CODE" datatype="DOUBLE" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="Map_Operation_1.CODE"/>
</DIAttributes>
</DIElement>
<DIElement name="DESCRIPTION" datatype="VARCHAR" size="1024" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="Map_Operation_1.DESCRIPTION"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_BUSINESS_KEY" datatype="VARCHAR" size="100" key="true" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="Map_Operation_1.MD_BUSINESS_KEY"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_ENTERPRISE_KEY" datatype="DECIMAL" precision="18" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="Map_Operation_1.MD_ENTERPRISE_KEY"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_FLAG" datatype="VARCHAR" size="10" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="$G_FLAG_UPDATE "/>
</DIAttributes>
</DIElement>
<DIElement name="STATUS_NAME" datatype="VARCHAR" size="60" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="Map_Operation_1.STATUS_NAME"/>
</DIAttributes>
</DIElement>
</DISchema>
<DISelect>
<DIProjection>
<DIExpression isString="true" expr="$G_BATCH_ID" >
<VARIABLE_REFERENCE name="$G_BATCH_ID" />
</DIExpression>
<DIExpression isString="true" expr="$G_PROCESS_ID" >
<VARIABLE_REFERENCE name="$G_PROCESS_ID" />
</DIExpression>
<DIExpression isString="true" expr="Map_Operation_1.CODE" >
<COLUMN_REFERENCE  qualifier1="Map_Operation_1" column="CODE" />
</DIExpression>
<DIExpression isString="true" expr="Map_Operation_1.DESCRIPTION" >
<COLUMN_REFERENCE  qualifier1="Map_Operation_1" column="DESCRIPTION" />
</DIExpression>
<DIExpression isString="true" expr="Map_Operation_1.MD_BUSINESS_KEY" >
<COLUMN_REFERENCE  qualifier1="Map_Operation_1" column="MD_BUSINESS_KEY" />
</DIExpression>
<DIExpression isString="true" expr="Map_Operation_1.MD_ENTERPRISE_KEY" >
<COLUMN_REFERENCE  qualifier1="Map_Operation_1" column="MD_ENTERPRISE_KEY" />
</DIExpression>
<DIExpression isString="true" expr="$G_FLAG_UPDATE" >
<VARIABLE_REFERENCE name="$G_FLAG_UPDATE" />
</DIExpression>
<DIExpression isString="true" expr="Map_Operation_1.STATUS_NAME" >
<COLUMN_REFERENCE  qualifier1="Map_Operation_1" column="STATUS_NAME" />
</DIExpression>
</DIProjection>
<DIFrom>
<DITableSpec name="Map_Operation_1" />
</DIFrom>
</DISelect>
<DIAttributes>
<DIAttribute name="distinct_run_as_separate_process" value="no"/>
<DIAttribute name="group_by_run_as_separate_process" value="no"/>
<DIAttribute name="join_run_as_separate_process" value="no"/>
<DIAttribute name="order_by_run_as_separate_process" value="no"/>
<DIAttribute name="run_as_separate_process" value="no"/>
</DIAttributes>
</DIQuery>

<DIQuery typeId="122"  >
<DIUIOptions>
<DIAttribute name="ui_acta_from_schema_0" value="Map_Operation"/>
</DIUIOptions>
<DISchema name="Query_2" >
<DIElement name="MD_BATCH_ID" datatype="DECIMAL" precision="19" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="$G_BATCH_ID "/>
</DIAttributes>
</DIElement>
<DIElement name="MD_PROCESS_ID" datatype="DECIMAL" precision="19" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="$G_PROCESS_ID"/>
</DIAttributes>
</DIElement>
<DIElement name="CODE" datatype="DOUBLE" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="Map_Operation.CODE"/>
</DIAttributes>
</DIElement>
<DIElement name="DESCRIPTION" datatype="VARCHAR" size="1024" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="Map_Operation.DESCRIPTION"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_BUSINESS_KEY" datatype="VARCHAR" size="100" key="true" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="Map_Operation.MD_BUSINESS_KEY"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_ENTERPRISE_KEY" datatype="DECIMAL" precision="18" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="greatest(5+gen_row_num(),key_generation('DWSTAGING_DS.DWSTAGING_ALIAS.STATUS_ENTERPRISE_XREF', 'ENTERPRISE_KEY',1))"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_FLAG" datatype="VARCHAR" size="10" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="$G_FLAG_NEW "/>
</DIAttributes>
</DIElement>
<DIElement name="STATUS_NAME" datatype="VARCHAR" size="60" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="Map_Operation.STATUS_NAME"/>
</DIAttributes>
</DIElement>
</DISchema>
<DISelect>
<DIProjection>
<DIExpression isString="true" expr="$G_BATCH_ID" >
<VARIABLE_REFERENCE name="$G_BATCH_ID" />
</DIExpression>
<DIExpression isString="true" expr="$G_PROCESS_ID" >
<VARIABLE_REFERENCE name="$G_PROCESS_ID" />
</DIExpression>
<DIExpression isString="true" expr="Map_Operation.CODE" >
<COLUMN_REFERENCE  qualifier1="Map_Operation" column="CODE" />
</DIExpression>
<DIExpression isString="true" expr="Map_Operation.DESCRIPTION" >
<COLUMN_REFERENCE  qualifier1="Map_Operation" column="DESCRIPTION" />
</DIExpression>
<DIExpression isString="true" expr="Map_Operation.MD_BUSINESS_KEY" >
<COLUMN_REFERENCE  qualifier1="Map_Operation" column="MD_BUSINESS_KEY" />
</DIExpression>
<DIExpression isString="true" expr="greatest((5 + gen_row_num()), key_generation(DWSTAGING_DS.DWSTAGING_ALIAS.STATUS_ENTERPRISE_XREF, 'ENTERPRISE_KEY', 1) )" >
<FUNCTION_CALL name="greatest"  type="DI" >
<ADD>
<CONSTANT value="5" datatype="INT" />
<FUNCTION_CALL name="gen_row_num"  type="DI" />
</ADD>
<FUNCTION_CALL name="key_generation"  type="DI" tableDatastore="DWSTAGING_DS" tableOwner="DWSTAGING_ALIAS" tableName="STATUS_ENTERPRISE_XREF" >
<CONSTANT value="ENTERPRISE_KEY" datatype="VARCHAR" size="14" />
<CONSTANT value="1" datatype="INT" />
</FUNCTION_CALL>
</FUNCTION_CALL>
</DIExpression>
<DIExpression isString="true" expr="$G_FLAG_NEW" >
<VARIABLE_REFERENCE name="$G_FLAG_NEW" />
</DIExpression>
<DIExpression isString="true" expr="Map_Operation.STATUS_NAME" >
<COLUMN_REFERENCE  qualifier1="Map_Operation" column="STATUS_NAME" />
</DIExpression>
</DIProjection>
<DIFrom>
<DITableSpec name="Map_Operation" />
</DIFrom>
</DISelect>
<DIAttributes>
<DIAttribute name="distinct_run_as_separate_process" value="no"/>
<DIAttribute name="group_by_run_as_separate_process" value="no"/>
<DIAttribute name="join_run_as_separate_process" value="no"/>
<DIAttribute name="order_by_run_as_separate_process" value="no"/>
<DIAttribute name="run_as_separate_process" value="no"/>
</DIAttributes>
</DIQuery>

<DITransformCall typeId="111" name="Merge" >
<DIInputView name="Query_1"  />
<DIInputView name="Query_2"  />
<DISchema name="Merge" >
</DISchema>
</DITransformCall>
<DIDatabaseTableTarget typeID="11" bulkLoader="false" datastoreName="DWSTAGING_DS" ownerName="DWSTAGING_ALIAS" tableName="STATUS_MSC" >
<DIInputView name="Merge"  />
<DIAttributes>
<DIAttribute name="LDRLiveLoad" value="no"/>
<DIAttribute name="Table_Type" value="TABLE"/>
<DIAttribute name="connection_port" value="no"/>
<DIAttribute name="ldr_configuration_enabled" value="yes"/>
<DIAttribute name="ldr_configurations" hasNestedXMLTree ="true">

<LDRConfigurations>
<LDRConfiguration database_type="Microsoft_SQL_Server" database_version="Microsoft SQL Server 2005">
<auto_correct_using_merge>yes</auto_correct_using_merge>
<bulk_ldr_all_rows></bulk_ldr_all_rows>
<bulk_ldr_max_errors></bulk_ldr_max_errors>
<bulk_ldr_rows_per_commit>1000</bulk_ldr_rows_per_commit>
<enable_partitioning>no</enable_partitioning>
<ignore_column_case>yes</ignore_column_case>
<ignore_columns_null>no</ignore_columns_null>
<ignore_columns_value></ignore_columns_value>
<loader_auto_correct>no</loader_auto_correct>
<loader_bulk_load>1</loader_bulk_load>
<loader_compare_column>compare_by_name</loader_compare_column>
<loader_delete_map></loader_delete_map>
<loader_drop_and_create_table>no</loader_drop_and_create_table>
<loader_insert_map></loader_insert_map>
<loader_load_choice>append</loader_load_choice>
<loader_num_parallel_loaders>1</loader_num_parallel_loaders>
<loader_overflow_file>overflow_file</loader_overflow_file>
<loader_post_load1></loader_post_load1>
<loader_pre_load1></loader_pre_load1>
<loader_quote_names>0</loader_quote_names>
<loader_transactional>no</loader_transactional>
<loader_transactional_order>0</loader_transactional_order>
<loader_update_key_columns>no</loader_update_key_columns>
<loader_update_map></loader_update_map>
<loader_use_user_defined_keys>no</loader_use_user_defined_keys>
<loader_xact_size>1000</loader_xact_size>
<mssql_bulk_ldr_mode>truncate</mssql_bulk_ldr_mode>
<mssql_bulk_ldr_packet_size>4</mssql_bulk_ldr_packet_size>
<overflow_file_format>write_data</overflow_file_format>
<overriding_substitution_parameter_for_tablename></overriding_substitution_parameter_for_tablename>
<use_overflow_file>no</use_overflow_file>
<use_unicode_varchar>no</use_unicode_varchar>
<sql_text></sql_text>
</LDRConfiguration>
</LDRConfigurations>
</DIAttribute>
<DIAttribute name="loader_template_table" value="no"/>
<DIAttribute name="name" value="DWSTAGING_DS"/>
<DIAttribute name="use_unicode_varchar" value="no"/>
</DIAttributes>
</DIDatabaseTableTarget>

<DIQuery typeId="122"  >
<DIUIOptions>
<DIAttribute name="ui_acta_from_schema_0" value="STATUS_EXTT_V_1"/>
<DIAttribute name="ui_display_name" value="QRY_SRT"/>
</DIUIOptions>
<DISchema name="QRY_SRT" >
<DIElement name="MD_BUSINESS_KEY" datatype="VARCHAR" size="100" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="STATUS_EXTT_V_1.MD_BUSINESS_KEY"/>
</DIAttributes>
</DIElement>
<DIElement name="STATUS_NAME" datatype="VARCHAR" size="60" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="STATUS_EXTT_V_1.STATUS_NAME"/>
</DIAttributes>
</DIElement>
<DIElement name="DESCRIPTION" datatype="VARCHAR" size="1024" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="STATUS_EXTT_V_1.DESCRIPTION"/>
</DIAttributes>
</DIElement>
<DIElement name="CODE" datatype="DECIMAL" precision="16" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="STATUS_EXTT_V_1.CODE"/>
</DIAttributes>
</DIElement>
</DISchema>
<DISelect>
<DIProjection>
<DIExpression isString="true" expr="STATUS_EXTT_V_1.MD_BUSINESS_KEY" >
<COLUMN_REFERENCE  qualifier1="STATUS_EXTT_V_1" column="MD_BUSINESS_KEY" />
</DIExpression>
<DIExpression isString="true" expr="STATUS_EXTT_V_1.STATUS_NAME" >
<COLUMN_REFERENCE  qualifier1="STATUS_EXTT_V_1" column="STATUS_NAME" />
</DIExpression>
<DIExpression isString="true" expr="STATUS_EXTT_V_1.DESCRIPTION" >
<COLUMN_REFERENCE  qualifier1="STATUS_EXTT_V_1" column="DESCRIPTION" />
</DIExpression>
<DIExpression isString="true" expr="STATUS_EXTT_V_1.CODE" >
<COLUMN_REFERENCE  qualifier1="STATUS_EXTT_V_1" column="CODE" />
</DIExpression>
</DIProjection>
<DIFrom>
<DITableSpec name="STATUS_EXTT_V_1" />
</DIFrom>
<DIOrderBys>
<DIOrderBy direction="ASC">
<DIExpression isString="true" expr="STATUS_EXTT_V_1.STATUS_NAME" >
<COLUMN_REFERENCE  qualifier1="STATUS_EXTT_V_1" column="STATUS_NAME" />
</DIExpression>
</DIOrderBy>
</DIOrderBys>
</DISelect>
<DIAttributes>
<DIAttribute name="distinct_run_as_separate_process" value="no"/>
<DIAttribute name="group_by_run_as_separate_process" value="no"/>
<DIAttribute name="join_run_as_separate_process" value="no"/>
<DIAttribute name="order_by_run_as_separate_process" value="no"/>
<DIAttribute name="run_as_separate_process" value="no"/>
</DIAttributes>
</DIQuery>

</DITransforms>
<DIAttributes>
<DIAttribute name="Audit" hasNestedXMLTree ="true">

<Audit>
<AuditObjects>
</AuditObjects>
<AuditRules>
</AuditRules>
<Notifications>
<RaiseException Enabled="true" >
</RaiseException>
<Mail Enabled="false" ></Mail>
<Script Enabled="false" ></Script>
</Notifications>
</Audit>

</DIAttribute>
<DIAttribute name="Cache_type" value="pageable_cache"/>
<DIAttribute name="Parallelism_degree" value="0"/>
<DIAttribute name="allows_both_input_and_output" value="yes"/>
<DIAttribute name="run_once" value="no"/>
<DIAttribute name="use_dataflow_links" value="no"/>
<DIAttribute name="use_datastore_links" value="yes"/>
<DIAttribute name="validation_xform_exists" value="no"/>
<DIAttribute name="validation_xform_stats" value="no"/>
</DIAttributes>
</DIDataflow>
<DIWorkflow name="EXTERN_PROGRAM_CON_WF" typeId="2" >
<DIVariables>
<DIElement paramType="LOCAL" name="$L_IDENTIFIER" datatype="VARCHAR" size="100" >
</DIElement>
</DIVariables>
<DISteps>
</DISteps>
<DIAttributes>
<DIAttribute name="run_once" value="no"/>
<DIAttribute name="unit_of_recovery" value="no"/>
</DIAttributes>
</DIWorkflow>
<DIWorkflow name="EXTN_XFR_DIM_CONT_WF" typeId="2" >
<DIUIOptions>
<DIAnnotation name="ANNOTATION_0"><DIAttribute name="ObjectDesc" value="This workflow is a container for the entities concerned by the XFR DIM ETL Step for the external files"/>
</DIAnnotation></DIUIOptions>
<DIProperties>
<DIAttribute name="GeneratorTemplate" value="ENTITY_LEVEL_FOR_PRODUCT_CONTAINER_WF (version 0.13.0-SNAPSHOT)"/>
<DIAttribute name="GeneratorVersion" value="v1.0"/>
<DIAttribute name="GenerationDate" value="Fri, 23 Jan 2009 10:49:48"/>
<DIAttribute name="Description" value="This workflow is a container for the entities concerned by the XFR DIM ETL Step for the external files. It integrates the following entities:&#xD;&#xA;  - APPLICATION (version 1.0)&#xD;&#xA;  - BUDGET (version 1.0)&#xD;&#xA;  - COSTCATEGORY (version 1.0)&#xD;&#xA;  - ITFUNCTION (version 1.0)&#xD;&#xA;  - MEASURETYPE (version 1.0)&#xD;&#xA;  - PROGRAM (version 1)&#xD;&#xA;  - STATUS (version 1.0)&#xD;&#xA;"/>
</DIProperties>
<DISteps>
<DICallStep typeId="0"  calledObjectType="Workflow" name="BUDGET_XFR_DIM_WF" >
</DICallStep>
<DICallStep typeId="0"  calledObjectType="Workflow" name="COSTCATEGORY_XFR_DIM_WF" >
</DICallStep>
<DICallStep typeId="0"  calledObjectType="Workflow" name="ITFUNCTION_XFR_DIM_WF" >
</DICallStep>
<DICallStep typeId="0"  calledObjectType="Workflow" name="MEASURETYPE_XFR_DIM_WF" >
</DICallStep>
<DICallStep typeId="0"  calledObjectType="Workflow" name="EXTERN_PROGRAMS_XFR_DIM_WF" >
</DICallStep>
<DICallStep typeId="0"  calledObjectType="Workflow" name="STATUS_XFR_DIM_WF" >
</DICallStep>
</DISteps>
<DIAttributes>
<DIAttribute name="run_once" value="no"/>
<DIAttribute name="unit_of_recovery" value="no"/>
</DIAttributes>
</DIWorkflow>
<DIWorkflow name="BUDGET_XFR_DIM_WF" typeId="2" >
<DIUIOptions>
<DIAnnotation name="ANNOTATION_0"><DIAttribute name="ObjectDesc" value="This workflow is responsible for loading dimension records into target staging and processing the flagged records into the appropriate load-ready XFR tables  (XFRU for slowly changing dimension type 1), (XFRN for new dimension records). "/>
</DIAnnotation><DIAttribute name="AutoLayout" value="yes"/>
</DIUIOptions>
<DIProperties>
<DIAttribute name="Description" value="The workflow {TARGET DIMENSION NAME}_XFR_WF is the workflow responsible for loading dimension tables in target staging.  The workflow will be composed of the following objects:&#xA;•&#x9;{TARGET DIMENSION NAME}_XFR_TRY – The beginning of the TRY/CATCH block in Data Services&#xA;•&#x9;{TARGET DIMENSION NAME}_XFR_START_SC – The script that calls the custom function that initiates the metadata tracking for the workflow. The script also calls the custom function that creates pseudo surrogate key record. &#xA;•&#x9;{TARGET DIMENSION NAME}_XFR_DF – The dataflow that based on the incoming Multiple Source Consolidation MSC table, checks the value of the MD_FLAG field for each record, which will specify if the record is of type insert, update or delete.&#xA;•&#x9;{TARGET DIMENSION NAME}_XFR_END_SC – The script that calls the custom function that closes the metadata for the workflow.&#xA;•&#x9;{TARGET DIMENSION NAME}_XFR_CATCH – The end of the TRY/CATCH block.  It contains the script that calls the custom function which writes metadata if there is a failure."/>
</DIProperties>
<DIVariables>
<DIElement paramType="LOCAL" name="$L_IDENTIFIER" datatype="VARCHAR" size="100" >
</DIElement>
</DIVariables>
<DISteps>
<DITryStep typeId="13" >
<DIUIOptions>
<DIAttribute name="AutoLayout" value="yes"/>
<DIAttribute name="ObjectDesc" value="the Try of the Try / Catch Block"/>
<DIAttribute name="ui_display_name" value="BUDGET_XFR_DIM_TRY"/>
</DIUIOptions>
<DISteps>
<DIScript>
<DIUIOptions>
<DIAttribute name="ObjectDesc" value="The workflow script object which contains the script to call the custom start workflow function.  This script opens the metadata records that are part of this process"/>
<DIAttribute name="ui_display_name" value="BUDGET_XFR_DIM_START_SC"/>
<DIAttribute name="ui_script_text" value="# CALL FUNCTION TO TRACK START OF WORKFLOW&#xA;$L_IDENTIFIER = workflow_name();&#xA;ABC_STARTWF_FN($L_IDENTIFIER, $G_PROCESS_ID);&#xA;&#xA;"/>
</DIUIOptions>
<DIAssignmentStep typeId="12" variable="$L_IDENTIFIER" >
<DIExpression isString="true" expr="workflow_name()" >
<FUNCTION_CALL name="workflow_name"  type="DI" />
</DIExpression>
</DIAssignmentStep>
<DIFunctionCallStep typeId="23" >
<DIExpression isString="true" expr="abc_startwf_fn($L_IDENTIFIER, $G_PROCESS_ID)" >
<FUNCTION_CALL name="abc_startwf_fn"  type="DI" >
<VARIABLE_REFERENCE name="$L_IDENTIFIER" />
<VARIABLE_REFERENCE name="$G_PROCESS_ID" />
</FUNCTION_CALL>
</DIExpression>
</DIFunctionCallStep>
</DIScript>
<DICallStep typeId="1"  calledObjectType="Dataflow" name="BUDGET_XFR_DIM_DF" >
</DICallStep>
<DIScript>
<DIUIOptions>
<DIAttribute name="ObjectDesc" value="The workflow script object that calls the custom end workflow function.  This script closes the metadata records that are part of this process."/>
<DIAttribute name="ui_display_name" value="BUDGET_XFR_DIM_END_SC"/>
<DIAttribute name="ui_script_text" value="# CALL FUNCTION TO TRACK END OF WORKFLOW&#xA;ABC_ENDWF_FN($L_IDENTIFIER, $G_PROCESS_ID);&#xA;"/>
</DIUIOptions>
<DIFunctionCallStep typeId="23" >
<DIExpression isString="true" expr="abc_endwf_fn($L_IDENTIFIER, $G_PROCESS_ID)" >
<FUNCTION_CALL name="abc_endwf_fn"  type="DI" >
<VARIABLE_REFERENCE name="$L_IDENTIFIER" />
<VARIABLE_REFERENCE name="$G_PROCESS_ID" />
</FUNCTION_CALL>
</DIExpression>
</DIFunctionCallStep>
</DIScript>
</DISteps>
<DICatch typeId="20" errorCode="210101" >
<DIUIOptions>
<DIAttribute name="AutoLayout" value="yes"/>
<DIAttribute name="ObjectDesc" value="The workflow catch object is the end of the TRY/CATCH block in BO DS.  This catch block will contain the script object that calls a custom fail workflow function used to write the metadata for failed jobs."/>
<DIAttribute name="ui_display_name" value="BUDGET_XFR_DIM_CATCH"/>
</DIUIOptions>
<DISteps>
<DIScript>
<DIUIOptions>
<DIAttribute name="ui_display_name" value="BUDGET_XFR_DIM_FAIL_SC"/>
<DIAttribute name="ui_script_text" value="# CALL FUNCTION TO TRACK FAIL OF WORKFLOW&#xA;ABC_FAILWF_FN(workflow_name(), $G_PROCESS_ID, 'Error: \[' || error_number() || '\] ' || error_message());"/>
</DIUIOptions>
<DIFunctionCallStep typeId="23" >
<DIExpression isString="true" expr="abc_failwf_fn(workflow_name(), $G_PROCESS_ID, ((('Error: \\[' || error_number()) || '\\] ') || error_message()))" >
<FUNCTION_CALL name="abc_failwf_fn"  type="DI" >
<FUNCTION_CALL name="workflow_name"  type="DI" />
<VARIABLE_REFERENCE name="$G_PROCESS_ID" />
<CONCAT>
<CONCAT>
<CONCAT>
<CONSTANT value="Error: \[" datatype="VARCHAR" size="9" />
<FUNCTION_CALL name="error_number"  type="DI" />
</CONCAT>
<CONSTANT value="\] " datatype="VARCHAR" size="3" />
</CONCAT>
<FUNCTION_CALL name="error_message"  type="DI" />
</CONCAT>
</FUNCTION_CALL>
</DIExpression>
</DIFunctionCallStep>
</DIScript>
</DISteps>
</DICatch>
</DITryStep>
</DISteps>
<DIAttributes>
<DIAttribute name="run_once" value="no"/>
<DIAttribute name="unit_of_recovery" value="no"/>
</DIAttributes>
</DIWorkflow>
<DIDataflow name="BUDGET_XFR_DIM_DF" typeId="1" >
<DIUIOptions>
<DIAnnotation name="ANNOTATION_0"><DIAttribute name="ObjectDesc" value="Based on the incoming MSC table, check the value of the MD_FLAG field for each record, which will specify if the record is of type insert, update or delete. The MD_* fields are populated as appropriate in each QRY transform and pushed to the appropriate load ready XFR table."/>
</DIAnnotation><DIAttribute name="AutoLayout" value="yes"/>
</DIUIOptions>
<DIProperties>
<DIAttribute name="Description" value="The dataflow that based on the incoming Multiple Source Consolidation MSC table, checks the value of the MD_FLAG field for each record, which will specify if the record is of type insert, update or . Then process and load the appropriate XFR target staging table."/>
</DIProperties>
<DITransforms>
<DIDatabaseTableTarget typeID="11" bulkLoader="false" datastoreName="DWSTAGING_DS" ownerName="DWSTAGING_ALIAS" tableName="BUDGET_DIM_XFRN" >
<DIInputView name="QRY_PK_BUDGET_ID"  />
<DIAttributes>
<DIAttribute name="LDRLiveLoad" value="no"/>
<DIAttribute name="Table_Type" value="TABLE"/>
<DIAttribute name="connection_port" value="no"/>
<DIAttribute name="ldr_configuration_enabled" value="yes"/>
<DIAttribute name="ldr_configurations" hasNestedXMLTree ="true">
<LDRConfigurations>
<LDRConfiguration database_type="Microsoft_SQL_Server" database_version="Microsoft SQL Server 2005">
<auto_correct_using_merge>yes</auto_correct_using_merge>
<bulk_ldr_all_rows/>
<bulk_ldr_max_errors/>
<bulk_ldr_rows_per_commit>1000</bulk_ldr_rows_per_commit>
<enable_partitioning>no</enable_partitioning>
<ignore_column_case>yes</ignore_column_case>
<ignore_columns_null>no</ignore_columns_null>
<ignore_columns_value/>
<loader_auto_correct>no</loader_auto_correct>
<loader_bulk_load>1</loader_bulk_load>
<loader_compare_column>compare_by_name</loader_compare_column>
<loader_delete_map/>
<loader_drop_and_create_table>yes</loader_drop_and_create_table>
<loader_insert_map/>
<loader_load_choice>append</loader_load_choice>
<loader_num_parallel_loaders>1</loader_num_parallel_loaders>
<loader_overflow_file>overflow_file</loader_overflow_file>
<loader_post_load1/>
<loader_pre_load1/>
<loader_quote_names>0</loader_quote_names>
<loader_transactional>no</loader_transactional>
<loader_transactional_order>0</loader_transactional_order>
<loader_update_key_columns>no</loader_update_key_columns>
<loader_update_map/>
<loader_use_user_defined_keys>no</loader_use_user_defined_keys>
<loader_xact_size>1000</loader_xact_size>
<mssql_bulk_ldr_mode>truncate</mssql_bulk_ldr_mode>
<mssql_bulk_ldr_packet_size>4</mssql_bulk_ldr_packet_size>
<overflow_file_format>write_data</overflow_file_format>
<overriding_substitution_parameter_for_tablename/>
<use_overflow_file>no</use_overflow_file>
<use_unicode_varchar>no</use_unicode_varchar>
<sql_text/>
</LDRConfiguration>
</LDRConfigurations>
</DIAttribute>
<DIAttribute name="loader_template_table" value="no"/>
<DIAttribute name="name" value="DWSTAGING_DS"/>
<DIAttribute name="use_unicode_varchar" value="no"/>
</DIAttributes>
</DIDatabaseTableTarget>

<DIQuery typeId="122"  >
<DIUIOptions>
<DIAttribute name="ui_acta_from_schema_0" value="Case_UPDATES"/>
<DIAttribute name="ui_display_name" value="QRY_Update"/>
</DIUIOptions>
<DISchema name="QRY_Update" >
<DIElement name="MD_BATCH_ID" datatype="DECIMAL" precision="19" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="$G_BATCH_ID&#xA; &#xA;"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_PROCESS_ID" datatype="DECIMAL" precision="19" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="$G_PROCESS_ID &#xA; &#xA;"/>
</DIAttributes>
</DIElement>
<DIElement name="BUDGET_NAME" datatype="VARCHAR" size="60" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="Case_UPDATES.BUDGET_NAME&#xA; &#xA;"/>
</DIAttributes>
</DIElement>
<DIElement name="BUDGET_NAME_ALT" datatype="VARCHAR" size="60" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="Case_UPDATES.BUDGET_NAME_ALT&#xA; &#xA;"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_DURABLE_KEY" datatype="DECIMAL" precision="18" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="Case_UPDATES.MD_ENTERPRISE_KEY"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_LASTMODDATE" datatype="DATETIME" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="$G_MODDATE_LOC &#xA; &#xA;"/>
</DIAttributes>
</DIElement>
</DISchema>
<DISelect>
<DIProjection>
<DIExpression isString="true" expr="$G_BATCH_ID" >
<VARIABLE_REFERENCE name="$G_BATCH_ID" />
</DIExpression>
<DIExpression isString="true" expr="$G_PROCESS_ID" >
<VARIABLE_REFERENCE name="$G_PROCESS_ID" />
</DIExpression>
<DIExpression isString="true" expr="Case_UPDATES.BUDGET_NAME" >
<COLUMN_REFERENCE  qualifier1="Case_UPDATES" column="BUDGET_NAME" />
</DIExpression>
<DIExpression isString="true" expr="Case_UPDATES.BUDGET_NAME_ALT" >
<COLUMN_REFERENCE  qualifier1="Case_UPDATES" column="BUDGET_NAME_ALT" />
</DIExpression>
<DIExpression isString="true" expr="Case_UPDATES.MD_ENTERPRISE_KEY" >
<COLUMN_REFERENCE  qualifier1="Case_UPDATES" column="MD_ENTERPRISE_KEY" />
</DIExpression>
<DIExpression isString="true" expr="$G_MODDATE_LOC" >
<VARIABLE_REFERENCE name="$G_MODDATE_LOC" />
</DIExpression>
</DIProjection>
<DIFrom>
<DITableSpec name="Case_UPDATES" />
</DIFrom>
<DIOrderBys>
<DIOrderBy direction="ASC">
<DIExpression isString="true" expr="Case_UPDATES.BUDGET_NAME" >
<COLUMN_REFERENCE  qualifier1="Case_UPDATES" column="BUDGET_NAME" />
</DIExpression>
</DIOrderBy>
</DIOrderBys>
</DISelect>
<DIAttributes>
<DIAttribute name="distinct_run_as_separate_process" value="no"/>
<DIAttribute name="group_by_run_as_separate_process" value="no"/>
<DIAttribute name="join_run_as_separate_process" value="no"/>
<DIAttribute name="order_by_run_as_separate_process" value="no"/>
<DIAttribute name="run_as_separate_process" value="no"/>
</DIAttributes>
</DIQuery>

<DIDatabaseTableTarget typeID="11" bulkLoader="false" datastoreName="DWSTAGING_DS" ownerName="DWSTAGING_ALIAS" tableName="BUDGET_DIM_XFRU" >
<DIInputView name="Query"  />
<DIAttributes>
<DIAttribute name="LDRLiveLoad" value="no"/>
<DIAttribute name="Table_Type" value="TABLE"/>
<DIAttribute name="connection_port" value="no"/>
<DIAttribute name="ldr_configuration_enabled" value="yes"/>
<DIAttribute name="ldr_configurations" hasNestedXMLTree ="true">
<LDRConfigurations>
<LDRConfiguration database_type="Microsoft_SQL_Server" database_version="Microsoft SQL Server 2005">
<auto_correct_using_merge>yes</auto_correct_using_merge>
<bulk_ldr_all_rows/>
<bulk_ldr_max_errors/>
<bulk_ldr_rows_per_commit/>
<enable_partitioning>no</enable_partitioning>
<ignore_column_case>yes</ignore_column_case>
<ignore_columns_null>no</ignore_columns_null>
<ignore_columns_value/>
<loader_auto_correct>no</loader_auto_correct>
<loader_bulk_load>1</loader_bulk_load>
<loader_compare_column>compare_by_name</loader_compare_column>
<loader_delete_map/>
<loader_drop_and_create_table>no</loader_drop_and_create_table>
<loader_insert_map/>
<loader_load_choice>append</loader_load_choice>
<loader_num_parallel_loaders>1</loader_num_parallel_loaders>
<loader_overflow_file>overflow_file</loader_overflow_file>
<loader_post_load1/>
<loader_pre_load1/>
<loader_quote_names>0</loader_quote_names>
<loader_transactional>no</loader_transactional>
<loader_transactional_order>0</loader_transactional_order>
<loader_update_key_columns>no</loader_update_key_columns>
<loader_update_map/>
<loader_use_user_defined_keys>no</loader_use_user_defined_keys>
<loader_xact_size>1000</loader_xact_size>
<mssql_bulk_ldr_mode>truncate</mssql_bulk_ldr_mode>
<mssql_bulk_ldr_packet_size>4</mssql_bulk_ldr_packet_size>
<overflow_file_format>write_data</overflow_file_format>
<overriding_substitution_parameter_for_tablename/>
<use_overflow_file>no</use_overflow_file>
<use_unicode_varchar>no</use_unicode_varchar>
<sql_text/>
</LDRConfiguration>
</LDRConfigurations>
</DIAttribute>
<DIAttribute name="loader_template_table" value="no"/>
<DIAttribute name="name" value="DWSTAGING_DS"/>
<DIAttribute name="use_unicode_varchar" value="no"/>
</DIAttributes>
</DIDatabaseTableTarget>

<DIQuery typeId="122"  >
<DIUIOptions>
<DIAttribute name="ui_acta_from_schema_0" value="Case_NEW"/>
<DIAttribute name="ui_display_name" value="QRY_PK_BUDGET_ID"/>
</DIUIOptions>
<DISchema name="QRY_PK_BUDGET_ID" >
<DIElement name="PK_BUDGET_ID" datatype="DECIMAL" precision="18" scale="0" key="true" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="greatest(5+gen_row_num(),key_generation('DW_DS.DW_ALIAS.BUDGET_DIM', 'PK_BUDGET_ID',1))&#xA; &#xA;"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_BATCH_ID" datatype="DECIMAL" precision="19" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="$G_BATCH_ID&#xA; &#xA;"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_PROCESS_ID" datatype="DECIMAL" precision="19" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="$G_PROCESS_ID&#xA; &#xA;"/>
</DIAttributes>
</DIElement>
<DIElement name="BUDGET_NAME" datatype="VARCHAR" size="60" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="Case_NEW.BUDGET_NAME&#xA; &#xA;"/>
</DIAttributes>
</DIElement>
<DIElement name="BUDGET_NAME_ALT" datatype="VARCHAR" size="60" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="Case_NEW.BUDGET_NAME_ALT&#xA; &#xA;"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_ACTIVESTATUSIND" datatype="VARCHAR" size="1" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="'Y'&#xA; &#xA;"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_CREATEDDATE" datatype="DATETIME" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="$G_MODDATE_LOC &#xA; &#xA;"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_DELETEDDATE" datatype="DATETIME" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="NULL&#xA; &#xA;"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_DURABLE_KEY" datatype="DECIMAL" precision="18" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="Case_NEW.MD_ENTERPRISE_KEY"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_LASTMODDATE" datatype="DATETIME" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="NULL&#xA; &#xA;"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_TRANSENDDATE" datatype="DATETIME" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="NULL&#xA; &#xA;"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_TRANSLASTIND" datatype="VARCHAR" size="1" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="'Y'&#xA; &#xA;"/>
</DIAttributes>
</DIElement>
</DISchema>
<DISelect>
<DIProjection>
<DIExpression isString="true" expr="greatest((5 + gen_row_num()), key_generation(DW_DS.DW_ALIAS.BUDGET_DIM, 'PK_BUDGET_ID', 1) )" >
<FUNCTION_CALL name="greatest"  type="DI" >
<ADD>
<CONSTANT value="5" datatype="INT" />
<FUNCTION_CALL name="gen_row_num"  type="DI" />
</ADD>
<FUNCTION_CALL name="key_generation"  type="DI" tableDatastore="DW_DS" tableOwner="DW_ALIAS" tableName="BUDGET_DIM" >
<CONSTANT value="PK_BUDGET_ID" datatype="VARCHAR" size="12" />
<CONSTANT value="1" datatype="INT" />
</FUNCTION_CALL>
</FUNCTION_CALL>
</DIExpression>
<DIExpression isString="true" expr="$G_BATCH_ID" >
<VARIABLE_REFERENCE name="$G_BATCH_ID" />
</DIExpression>
<DIExpression isString="true" expr="$G_PROCESS_ID" >
<VARIABLE_REFERENCE name="$G_PROCESS_ID" />
</DIExpression>
<DIExpression isString="true" expr="Case_NEW.BUDGET_NAME" >
<COLUMN_REFERENCE  qualifier1="Case_NEW" column="BUDGET_NAME" />
</DIExpression>
<DIExpression isString="true" expr="Case_NEW.BUDGET_NAME_ALT" >
<COLUMN_REFERENCE  qualifier1="Case_NEW" column="BUDGET_NAME_ALT" />
</DIExpression>
<DIExpression isString="true" expr="'Y'" >
<CONSTANT value="Y" datatype="VARCHAR" size="1" />
</DIExpression>
<DIExpression isString="true" expr="$G_MODDATE_LOC" >
<VARIABLE_REFERENCE name="$G_MODDATE_LOC" />
</DIExpression>
<DIExpression isString="true" expr=" NULL " >
<CONSTANT_NULL /></DIExpression>
<DIExpression isString="true" expr="Case_NEW.MD_ENTERPRISE_KEY" >
<COLUMN_REFERENCE  qualifier1="Case_NEW" column="MD_ENTERPRISE_KEY" />
</DIExpression>
<DIExpression isString="true" expr=" NULL " >
<CONSTANT_NULL /></DIExpression>
<DIExpression isString="true" expr=" NULL " >
<CONSTANT_NULL /></DIExpression>
<DIExpression isString="true" expr="'Y'" >
<CONSTANT value="Y" datatype="VARCHAR" size="1" />
</DIExpression>
</DIProjection>
<DIFrom>
<DITableSpec name="Case_NEW" />
</DIFrom>
</DISelect>
<DIAttributes>
<DIAttribute name="distinct_run_as_separate_process" value="no"/>
<DIAttribute name="group_by_run_as_separate_process" value="no"/>
<DIAttribute name="join_run_as_separate_process" value="no"/>
<DIAttribute name="order_by_run_as_separate_process" value="no"/>
<DIAttribute name="run_as_separate_process" value="no"/>
</DIAttributes>
</DIQuery>


<!-- GUID is optional -->
<DITransformCall typeId="210" name="Case_Operation"  >
<DIUIOptions>
<DIAttribute name="Case_NEW" value="BUDGET_MSC_V.MD_FLAG=$G_FLAG_NEW "/>
<DIAttribute name="Case_UPDATES" value="BUDGET_MSC_V.MD_FLAG=$G_FLAG_UPDATE"/>
<DIAttribute name="ui_acta_from_schema_0" value="BUDGET_MSC_V"/>
</DIUIOptions>
<DIInputView name="BUDGET_MSC_V" />
<DISchema name="Case" >
</DISchema>
<DICase>
<DISwitch label="NEW" outputView="Case_NEW" isDefault="false">
<DIExpression isString="true" expr="(BUDGET_MSC_V.MD_FLAG = $G_FLAG_NEW)" >
<LOGICAL_OP op="EQ">
<COLUMN_REFERENCE  qualifier1="BUDGET_MSC_V" column="MD_FLAG" />
<VARIABLE_REFERENCE name="$G_FLAG_NEW" />
</LOGICAL_OP>
</DIExpression>
</DISwitch>
<DISwitch label="UPDATES" outputView="Case_UPDATES" isDefault="false">
<DIExpression isString="true" expr="(BUDGET_MSC_V.MD_FLAG = $G_FLAG_UPDATE)" >
<LOGICAL_OP op="EQ">
<COLUMN_REFERENCE  qualifier1="BUDGET_MSC_V" column="MD_FLAG" />
<VARIABLE_REFERENCE name="$G_FLAG_UPDATE" />
</LOGICAL_OP>
</DIExpression>
</DISwitch>
</DICase>
<DIAttributes>
<DIAttribute name="Mutually_Exclusive" value="yes"/>
<DIAttribute name="Preserve_Expression_Order" value="no"/>
</DIAttributes>
</DITransformCall>
<DITransformCall typeId="111" name="Table_Comparison" >
<DIInputView name="QRY_Update"  />
<DISchema name="BUDGET_DIM" >
</DISchema>
<DIAttributes>
<DIAttribute name="cache_comparison_table" value="yes"/>
<DIAttribute name="compare_column1" value="BUDGET_NAME_ALT"/>
<DIAttribute name="database_datastore" value="DW_DS"/>
<DIAttribute name="detect_all_dup_deletes" value="no"/>
<DIAttribute name="detect_delete" value="no"/>
<DIAttribute name="primary_key_column1" value="MD_DURABLE_KEY"/>
<DIAttribute name="run_as_separate_process" value="no"/>
<DIAttribute name="source_is_sorted" value="no"/>
<DIAttribute name="table_name" value="BUDGET_DIM"/>
<DIAttribute name="table_owner" value="DW_ALIAS"/>
<DIAttribute name="update_cache" value="no"/>
</DIAttributes>
</DITransformCall>
<DITransformCall typeId="111" name="Map_Operation" >
<DIInputView name="BUDGET_DIM"  />
<DISchema name="Map_Operation" >
</DISchema>
<DIAttributes>
<DIAttribute name="delete" value="discard"/>
<DIAttribute name="insert" value="discard"/>
<DIAttribute name="normal" value="discard"/>
<DIAttribute name="update" value="normal"/>
</DIAttributes>
</DITransformCall>
<DIQuery typeId="122"  >
<DIUIOptions>
<DIAttribute name="ui_acta_from_schema_0" value="Map_Operation"/>
</DIUIOptions>
<DISchema name="Query" >
<DIElement name="MD_BATCH_ID" datatype="DECIMAL" precision="19" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="$G_BATCH_ID "/>
</DIAttributes>
</DIElement>
<DIElement name="MD_PROCESS_ID" datatype="DECIMAL" precision="19" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="$G_PROCESS_ID "/>
</DIAttributes>
</DIElement>
<DIElement name="BUDGET_NAME" datatype="VARCHAR" size="60" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="Map_Operation.BUDGET_NAME"/>
</DIAttributes>
</DIElement>
<DIElement name="BUDGET_NAME_ALT" datatype="VARCHAR" size="60" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="Map_Operation.BUDGET_NAME_ALT"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_ACTIVESTATUSIND" datatype="VARCHAR" size="1" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="Map_Operation.MD_ACTIVESTATUSIND"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_CREATEDDATE" datatype="DATETIME" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="Map_Operation.MD_CREATEDDATE"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_DELETEDDATE" datatype="DATETIME" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="Map_Operation.MD_DELETEDDATE"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_DURABLE_KEY" datatype="DECIMAL" precision="18" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="Map_Operation.MD_DURABLE_KEY"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_LASTMODDATE" datatype="DATETIME" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="$G_MODDATE_LOC "/>
</DIAttributes>
</DIElement>
<DIElement name="MD_TRANSENDDATE" datatype="DATETIME" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="Map_Operation.MD_TRANSENDDATE"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_TRANSLASTIND" datatype="VARCHAR" size="1" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="Map_Operation.MD_TRANSLASTIND"/>
</DIAttributes>
</DIElement>
<DIElement name="PK_BUDGET_ID" datatype="DECIMAL" precision="18" scale="0" key="true" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="Map_Operation.PK_BUDGET_ID"/>
</DIAttributes>
</DIElement>
</DISchema>
<DISelect>
<DIProjection>
<DIExpression isString="true" expr="$G_BATCH_ID" >
<VARIABLE_REFERENCE name="$G_BATCH_ID" />
</DIExpression>
<DIExpression isString="true" expr="$G_PROCESS_ID" >
<VARIABLE_REFERENCE name="$G_PROCESS_ID" />
</DIExpression>
<DIExpression isString="true" expr="Map_Operation.BUDGET_NAME" >
<COLUMN_REFERENCE  qualifier1="Map_Operation" column="BUDGET_NAME" />
</DIExpression>
<DIExpression isString="true" expr="Map_Operation.BUDGET_NAME_ALT" >
<COLUMN_REFERENCE  qualifier1="Map_Operation" column="BUDGET_NAME_ALT" />
</DIExpression>
<DIExpression isString="true" expr="Map_Operation.MD_ACTIVESTATUSIND" >
<COLUMN_REFERENCE  qualifier1="Map_Operation" column="MD_ACTIVESTATUSIND" />
</DIExpression>
<DIExpression isString="true" expr="Map_Operation.MD_CREATEDDATE" >
<COLUMN_REFERENCE  qualifier1="Map_Operation" column="MD_CREATEDDATE" />
</DIExpression>
<DIExpression isString="true" expr="Map_Operation.MD_DELETEDDATE" >
<COLUMN_REFERENCE  qualifier1="Map_Operation" column="MD_DELETEDDATE" />
</DIExpression>
<DIExpression isString="true" expr="Map_Operation.MD_DURABLE_KEY" >
<COLUMN_REFERENCE  qualifier1="Map_Operation" column="MD_DURABLE_KEY" />
</DIExpression>
<DIExpression isString="true" expr="$G_MODDATE_LOC" >
<VARIABLE_REFERENCE name="$G_MODDATE_LOC" />
</DIExpression>
<DIExpression isString="true" expr="Map_Operation.MD_TRANSENDDATE" >
<COLUMN_REFERENCE  qualifier1="Map_Operation" column="MD_TRANSENDDATE" />
</DIExpression>
<DIExpression isString="true" expr="Map_Operation.MD_TRANSLASTIND" >
<COLUMN_REFERENCE  qualifier1="Map_Operation" column="MD_TRANSLASTIND" />
</DIExpression>
<DIExpression isString="true" expr="Map_Operation.PK_BUDGET_ID" >
<COLUMN_REFERENCE  qualifier1="Map_Operation" column="PK_BUDGET_ID" />
</DIExpression>
</DIProjection>
<DIFrom>
<DITableSpec name="Map_Operation" />
</DIFrom>
</DISelect>
<DIAttributes>
<DIAttribute name="distinct_run_as_separate_process" value="no"/>
<DIAttribute name="group_by_run_as_separate_process" value="no"/>
<DIAttribute name="join_run_as_separate_process" value="no"/>
<DIAttribute name="order_by_run_as_separate_process" value="no"/>
<DIAttribute name="run_as_separate_process" value="no"/>
</DIAttributes>
</DIQuery>

<DIDatabaseTableSource typeId="22" datastoreName="DWSTAGING_DS" ownerName="DWSTAGING_ALIAS" tableName="BUDGET_MSC_V" >
<DIOutputView name="BUDGET_MSC_V"  />
<DIAttributes>
<DIAttribute name="array_fetch_size" value="1000"/>
<DIAttribute name="cache" value="yes"/>
<DIAttribute name="connection_port" value="no"/>
<DIAttribute name="enable_partitioning" value="no"/>
<DIAttribute name="name" value="DWSTAGING_DS"/>
<DIAttribute name="package_size" value="0"/>
<DIAttribute name="reader_is_DB2CDC_table" value="no"/>
<DIAttribute name="reader_overflow_file" value="overflow_file"/>
<DIAttribute name="reader_template_table" value="no"/>
<DIAttribute name="reader_use_overflow_file" value="no"/>
<DIAttribute name="reader_use_trex_transaction" value="no"/>
<DIAttribute name="table_weight" value="0"/>
</DIAttributes>
</DIDatabaseTableSource>

</DITransforms>
<DIAttributes>
<DIAttribute name="Cache_type" value="pageable_cache"/>
<DIAttribute name="Parallelism_degree" value="0"/>
<DIAttribute name="allows_both_input_and_output" value="yes"/>
<DIAttribute name="run_once" value="no"/>
<DIAttribute name="use_dataflow_links" value="no"/>
<DIAttribute name="use_datastore_links" value="yes"/>
<DIAttribute name="validation_xform_exists" value="no"/>
<DIAttribute name="validation_xform_stats" value="no"/>
</DIAttributes>
</DIDataflow>
<DIWorkflow name="COSTCATEGORY_XFR_DIM_WF" typeId="2" >
<DIUIOptions>
<DIAnnotation name="ANNOTATION_0"><DIAttribute name="ObjectDesc" value="This workflow is responsible for loading dimension records into target staging and processing the flagged records into the appropriate load-ready XFR tables (XFRD for logical delete), (XFRU for slowly changing dimension type 1 and type 2 updates), (XFRN for new dimension records). "/>
</DIAnnotation><DIAttribute name="AutoLayout" value="yes"/>
</DIUIOptions>
<DIProperties>
<DIAttribute name="Description" value="The workflow {TARGET DIMENSION NAME}_XFR_WF is the workflow responsible for loading dimension tables in target staging.  The workflow will be composed of the following objects:&#xA;•&#x9;{TARGET DIMENSION NAME}_XFR_TRY – The beginning of the TRY/CATCH block in Data Services&#xA;•&#x9;{TARGET DIMENSION NAME}_XFR_START_SC – The script that calls the custom function that initiates the metadata tracking for the workflow. The script also calls the custom function that creates pseudo surrogate key record. &#xA;•&#x9;{TARGET DIMENSION NAME}_XFR_DF – The dataflow that based on the incoming Multiple Source Consolidation MSC table, checks the value of the MD_FLAG field for each record, which will specify if the record is of type insert, update or delete.&#xA;•&#x9;{TARGET DIMENSION NAME}_XFR_END_SC – The script that calls the custom function that closes the metadata for the workflow.&#xA;•&#x9;{TARGET DIMENSION NAME}_XFR_CATCH – The end of the TRY/CATCH block.  It contains the script that calls the custom function which writes metadata if there is a failure."/>
</DIProperties>
<DIVariables>
<DIElement paramType="LOCAL" name="$L_IDENTIFIER" datatype="VARCHAR" size="60" >
</DIElement>
<DIElement paramType="LOCAL" name="$L_EXTRACT_BEGIN_DATE" datatype="DATETIME" >
</DIElement>
<DIElement paramType="LOCAL" name="$L_EXTRACT_END_DATE" datatype="DATETIME" >
</DIElement>
<DIElement paramType="LOCAL" name="$L_SOURCE_XREF_ID" datatype="DECIMAL" precision="18" scale="0" >
</DIElement>
<DIElement paramType="LOCAL" name="$L_CONSOLIDATED_XREF_ID" datatype="DECIMAL" precision="18" scale="0" >
</DIElement>
<DIElement paramType="LOCAL" name="$L_SOURCE_ENTITY" datatype="VARCHAR" size="200" >
</DIElement>
<DIElement paramType="LOCAL" name="$L_CONSOLIDATED_NAME" datatype="VARCHAR" size="200" >
</DIElement>
</DIVariables>
<DISteps>
<DITryStep typeId="13" >
<DIUIOptions>
<DIAttribute name="AutoLayout" value="yes"/>
<DIAttribute name="ObjectDesc" value="the Try of the Try / Catch Block"/>
<DIAttribute name="ui_display_name" value="COSTCATEGORY_DIM_XFR_TRY"/>
</DIUIOptions>
<DISteps>
<DIScript>
<DIUIOptions>
<DIAttribute name="ObjectDesc" value="The workflow script object which contains the script to call the custom start workflow function.  This script opens the metadata records that are part of this process"/>
<DIAttribute name="ui_display_name" value="COSTCATEGORY_DIM_XFR_START_SC"/>
<DIAttribute name="ui_script_text" value="#-- ABC ---&#xA;$L_IDENTIFIER = workflow_name();&#xA;ABC_STARTWF_FN($L_IDENTIFIER, $G_PROCESS_ID);&#xA;&#xA;#-----&#xA;#CREATE_PSEUDO_KEY_FN('COSTCENTER_DIM', 'PK_COSTCENTER_ID', 'COSTCENTER_NAME'); &#xA;&#xA;if( $G_TRACE_MODE = 1)&#xA;Begin&#xA;print(' ');&#xA;print(' ');&#xA;print('The Workfolw ' || workflow_name() || ' is running in Debug mode.');&#xA;print(' ');&#xA;print(' ');&#xA;END&#xA;&#xA;"/>
</DIUIOptions>
<DIAssignmentStep typeId="12" variable="$L_IDENTIFIER" >
<DIExpression isString="true" expr="workflow_name()" >
<FUNCTION_CALL name="workflow_name"  type="DI" />
</DIExpression>
</DIAssignmentStep>
<DIFunctionCallStep typeId="23" >
<DIExpression isString="true" expr="abc_startwf_fn($L_IDENTIFIER, $G_PROCESS_ID)" >
<FUNCTION_CALL name="abc_startwf_fn"  type="DI" >
<VARIABLE_REFERENCE name="$L_IDENTIFIER" />
<VARIABLE_REFERENCE name="$G_PROCESS_ID" />
</FUNCTION_CALL>
</DIExpression>
</DIFunctionCallStep>
<DIIfStep typeId="2" >
<DIExpression isString="true" expr="($G_TRACE_MODE = 1)" >
<LOGICAL_OP op="EQ">
<VARIABLE_REFERENCE name="$G_TRACE_MODE" />
<CONSTANT value="1" datatype="INT" />
</LOGICAL_OP>
</DIExpression>
<DIIf>
<DIFunctionCallStep typeId="23" >
<DIExpression isString="true" expr="print(' ')" >
<FUNCTION_CALL name="print"  type="DI" >
<CONSTANT value=" " datatype="VARCHAR" size="1" />
</FUNCTION_CALL>
</DIExpression>
</DIFunctionCallStep>
<DIFunctionCallStep typeId="23" >
<DIExpression isString="true" expr="print(' ')" >
<FUNCTION_CALL name="print"  type="DI" >
<CONSTANT value=" " datatype="VARCHAR" size="1" />
</FUNCTION_CALL>
</DIExpression>
</DIFunctionCallStep>
<DIFunctionCallStep typeId="23" >
<DIExpression isString="true" expr="print((('The Workfolw ' || workflow_name()) || ' is running in Debug mode.'))" >
<FUNCTION_CALL name="print"  type="DI" >
<CONCAT>
<CONCAT>
<CONSTANT value="The Workfolw " datatype="VARCHAR" size="13" />
<FUNCTION_CALL name="workflow_name"  type="DI" />
</CONCAT>
<CONSTANT value=" is running in Debug mode." datatype="VARCHAR" size="26" />
</CONCAT>
</FUNCTION_CALL>
</DIExpression>
</DIFunctionCallStep>
<DIFunctionCallStep typeId="23" >
<DIExpression isString="true" expr="print(' ')" >
<FUNCTION_CALL name="print"  type="DI" >
<CONSTANT value=" " datatype="VARCHAR" size="1" />
</FUNCTION_CALL>
</DIExpression>
</DIFunctionCallStep>
<DIFunctionCallStep typeId="23" >
<DIExpression isString="true" expr="print(' ')" >
<FUNCTION_CALL name="print"  type="DI" >
<CONSTANT value=" " datatype="VARCHAR" size="1" />
</FUNCTION_CALL>
</DIExpression>
</DIFunctionCallStep>
</DIIf>
<DIElse>
</DIElse>
</DIIfStep>
</DIScript>
<DICallStep typeId="1"  calledObjectType="Dataflow" name="COSTCATEGORY_DIM_XFR_DF" >
<DIUIOptions>
<DIAttribute name="ParmDefaulted_01" value="FALSE"/>
<DIAttribute name="ParmDefaulted_02" value="FALSE"/>
</DIUIOptions>
<DIParameterValues>
<DIExpression isString="true" expr="$L_SOURCE_XREF_ID" >
<VARIABLE_REFERENCE name="$L_SOURCE_XREF_ID" />
</DIExpression>
<DIExpression isString="true" expr="$L_CONSOLIDATED_XREF_ID" >
<VARIABLE_REFERENCE name="$L_CONSOLIDATED_XREF_ID" />
</DIExpression>
</DIParameterValues>
</DICallStep>
<DIScript>
<DIUIOptions>
<DIAttribute name="ObjectDesc" value="The workflow script object that calls the custom end workflow function.  This script closes the metadata records that are part of this process."/>
<DIAttribute name="ui_display_name" value="COSTCATEGORY_DIM_XFR_END_SC"/>
<DIAttribute name="ui_script_text" value="#--- ABC ---&#xA;ABC_ENDWF_FN($L_IDENTIFIER, $G_PROCESS_ID);&#xA;&#xA;#------&#xA;&#xA;#DELETE_PSEUDO_KEY_FN('COSTCENTER_DIM', 'PK_COSTCENTER_ID');&#xA;&#xA;if( $G_DEBUG_MODE = 1)&#xA;Begin&#xA;print(' ');&#xA;print(' ');&#xA;print('The Workfolw ' || workflow_name() || ' is complete running in Debug mode.');&#xA;print(' ');&#xA;print(' ');&#xA;END"/>
</DIUIOptions>
<DIFunctionCallStep typeId="23" >
<DIExpression isString="true" expr="abc_endwf_fn($L_IDENTIFIER, $G_PROCESS_ID)" >
<FUNCTION_CALL name="abc_endwf_fn"  type="DI" >
<VARIABLE_REFERENCE name="$L_IDENTIFIER" />
<VARIABLE_REFERENCE name="$G_PROCESS_ID" />
</FUNCTION_CALL>
</DIExpression>
</DIFunctionCallStep>
<DIIfStep typeId="2" >
<DIExpression isString="true" expr="($G_DEBUG_MODE = 1)" >
<LOGICAL_OP op="EQ">
<VARIABLE_REFERENCE name="$G_DEBUG_MODE" />
<CONSTANT value="1" datatype="INT" />
</LOGICAL_OP>
</DIExpression>
<DIIf>
<DIFunctionCallStep typeId="23" >
<DIExpression isString="true" expr="print(' ')" >
<FUNCTION_CALL name="print"  type="DI" >
<CONSTANT value=" " datatype="VARCHAR" size="1" />
</FUNCTION_CALL>
</DIExpression>
</DIFunctionCallStep>
<DIFunctionCallStep typeId="23" >
<DIExpression isString="true" expr="print(' ')" >
<FUNCTION_CALL name="print"  type="DI" >
<CONSTANT value=" " datatype="VARCHAR" size="1" />
</FUNCTION_CALL>
</DIExpression>
</DIFunctionCallStep>
<DIFunctionCallStep typeId="23" >
<DIExpression isString="true" expr="print((('The Workfolw ' || workflow_name()) || ' is complete running in Debug mode.'))" >
<FUNCTION_CALL name="print"  type="DI" >
<CONCAT>
<CONCAT>
<CONSTANT value="The Workfolw " datatype="VARCHAR" size="13" />
<FUNCTION_CALL name="workflow_name"  type="DI" />
</CONCAT>
<CONSTANT value=" is complete running in Debug mode." datatype="VARCHAR" size="35" />
</CONCAT>
</FUNCTION_CALL>
</DIExpression>
</DIFunctionCallStep>
<DIFunctionCallStep typeId="23" >
<DIExpression isString="true" expr="print(' ')" >
<FUNCTION_CALL name="print"  type="DI" >
<CONSTANT value=" " datatype="VARCHAR" size="1" />
</FUNCTION_CALL>
</DIExpression>
</DIFunctionCallStep>
<DIFunctionCallStep typeId="23" >
<DIExpression isString="true" expr="print(' ')" >
<FUNCTION_CALL name="print"  type="DI" >
<CONSTANT value=" " datatype="VARCHAR" size="1" />
</FUNCTION_CALL>
</DIExpression>
</DIFunctionCallStep>
</DIIf>
<DIElse>
</DIElse>
</DIIfStep>
</DIScript>
</DISteps>
<DICatch typeId="20" errorCode="210101" >
<DIUIOptions>
<DIAttribute name="AutoLayout" value="yes"/>
<DIAttribute name="ObjectDesc" value="The workflow catch object is the end of the TRY/CATCH block in BO DS.  This catch block will contain the script object that calls a custom fail workflow function used to write the metadata for failed jobs."/>
<DIAttribute name="ui_display_name" value="COSTCATEGORY_DIM_XFR_CATCH"/>
</DIUIOptions>
<DISteps>
<DIScript>
<DIUIOptions>
<DIAttribute name="ui_display_name" value="COSTCATEGORY_DIM_XFR_FAIL_SC"/>
<DIAttribute name="ui_script_text" value="#ABC - CALL FUNCTION TO TRACK END OF WORKFLOW&#xA;ABC_FAILWF_FN(workflow_name(), $G_PROCESS_ID, 'Error: \[' || error_number() || '\] ' || error_message());&#xA;&#xA;&#xA;#----&#xA;if($G_TRACE_MODE=1)&#xA;begin&#xA;print(' ');&#xA;print(' ');&#xA;print('Message from the COSTCENTER_DIM_XFR_CATCH Block Script:');&#xA;print('The Workflow ' || workflow_name() || ' has failed to run.');&#xA;print(' ');&#xA;print(' ');&#xA;end"/>
</DIUIOptions>
<DIFunctionCallStep typeId="23" >
<DIExpression isString="true" expr="abc_failwf_fn(workflow_name(), $G_PROCESS_ID, ((('Error: \\[' || error_number()) || '\\] ') || error_message()))" >
<FUNCTION_CALL name="abc_failwf_fn"  type="DI" >
<FUNCTION_CALL name="workflow_name"  type="DI" />
<VARIABLE_REFERENCE name="$G_PROCESS_ID" />
<CONCAT>
<CONCAT>
<CONCAT>
<CONSTANT value="Error: \[" datatype="VARCHAR" size="9" />
<FUNCTION_CALL name="error_number"  type="DI" />
</CONCAT>
<CONSTANT value="\] " datatype="VARCHAR" size="3" />
</CONCAT>
<FUNCTION_CALL name="error_message"  type="DI" />
</CONCAT>
</FUNCTION_CALL>
</DIExpression>
</DIFunctionCallStep>
<DIIfStep typeId="2" >
<DIExpression isString="true" expr="($G_TRACE_MODE = 1)" >
<LOGICAL_OP op="EQ">
<VARIABLE_REFERENCE name="$G_TRACE_MODE" />
<CONSTANT value="1" datatype="INT" />
</LOGICAL_OP>
</DIExpression>
<DIIf>
<DIFunctionCallStep typeId="23" >
<DIExpression isString="true" expr="print(' ')" >
<FUNCTION_CALL name="print"  type="DI" >
<CONSTANT value=" " datatype="VARCHAR" size="1" />
</FUNCTION_CALL>
</DIExpression>
</DIFunctionCallStep>
<DIFunctionCallStep typeId="23" >
<DIExpression isString="true" expr="print(' ')" >
<FUNCTION_CALL name="print"  type="DI" >
<CONSTANT value=" " datatype="VARCHAR" size="1" />
</FUNCTION_CALL>
</DIExpression>
</DIFunctionCallStep>
<DIFunctionCallStep typeId="23" >
<DIExpression isString="true" expr="print('Message from the COSTCENTER_DIM_XFR_CATCH Block Script:')" >
<FUNCTION_CALL name="print"  type="DI" >
<CONSTANT value="Message from the COSTCENTER_DIM_XFR_CATCH Block Script:" datatype="VARCHAR" size="55" />
</FUNCTION_CALL>
</DIExpression>
</DIFunctionCallStep>
<DIFunctionCallStep typeId="23" >
<DIExpression isString="true" expr="print((('The Workflow ' || workflow_name()) || ' has failed to run.'))" >
<FUNCTION_CALL name="print"  type="DI" >
<CONCAT>
<CONCAT>
<CONSTANT value="The Workflow " datatype="VARCHAR" size="13" />
<FUNCTION_CALL name="workflow_name"  type="DI" />
</CONCAT>
<CONSTANT value=" has failed to run." datatype="VARCHAR" size="19" />
</CONCAT>
</FUNCTION_CALL>
</DIExpression>
</DIFunctionCallStep>
<DIFunctionCallStep typeId="23" >
<DIExpression isString="true" expr="print(' ')" >
<FUNCTION_CALL name="print"  type="DI" >
<CONSTANT value=" " datatype="VARCHAR" size="1" />
</FUNCTION_CALL>
</DIExpression>
</DIFunctionCallStep>
<DIFunctionCallStep typeId="23" >
<DIExpression isString="true" expr="print(' ')" >
<FUNCTION_CALL name="print"  type="DI" >
<CONSTANT value=" " datatype="VARCHAR" size="1" />
</FUNCTION_CALL>
</DIExpression>
</DIFunctionCallStep>
</DIIf>
<DIElse>
</DIElse>
</DIIfStep>
</DIScript>
</DISteps>
</DICatch>
</DITryStep>
</DISteps>
<DIAttributes>
<DIAttribute name="run_once" value="no"/>
<DIAttribute name="unit_of_recovery" value="no"/>
</DIAttributes>
</DIWorkflow>
<DIDataflow name="COSTCATEGORY_DIM_XFR_DF" typeId="1" >
<DIUIOptions>
<DIAnnotation name="ANNOTATION_0"><DIAttribute name="ObjectDesc" value="Based on the incoming MSC table, check the value of the MD_FLAG field for each record, which will specify if the record is of type insert, update or delete. The MD_* fields are populated as appropriate in each QRY transform and pushed to the appropriate load ready XFR table."/>
</DIAnnotation><DIAttribute name="AutoLayout" value="yes"/>
</DIUIOptions>
<DIProperties>
<DIAttribute name="Description" value="The dataflow that based on the incoming Multiple Source Consolidation MSC table, checks the value of the MD_FLAG field for each record, which will specify if the record is of type insert, update or . Then process and load the appropriate XFR target staging table."/>
</DIProperties>
<DIParameters>
<DIElement paramType="IN" name="$P_SOURCE_XREF_ID" datatype="DECIMAL" precision="18" scale="0" >
</DIElement>
<DIElement paramType="IN" name="$P_CONSOLIDATED_XREF_ID" datatype="DECIMAL" precision="18" scale="0" >
</DIElement>
</DIParameters>
<DITransforms>
<DIQuery typeId="122"  >
<DIUIOptions>
<DIAttribute name="ObjectDesc" value="Records with MD_FLAG value of new are marked with new MD attribute values and are pushed to the load-ready XFRN table."/>
<DIAttribute name="ui_acta_from_schema_0" value="COSTCATEGORY_MSC_V"/>
<DIAttribute name="ui_display_name" value="QRY_NEW"/>
</DIUIOptions>
<DISchema name="QRY_NEW" >
<DIElement name="MD_BATCH_ID" datatype="DECIMAL" precision="19" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="$G_BATCH_ID"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_PROCESS_ID" datatype="DECIMAL" precision="19" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="$G_PROCESS_ID"/>
</DIAttributes>
</DIElement>
<DIElement name="ACCOUNTING_CODE" datatype="VARCHAR" size="60" >
<DIAttributes>
<DIAttribute name="Description" value="Reference code"/>
<DIAttribute name="ui_mapping_text" value="COSTCATEGORY_MSC_V.ACCOUNTING_CODE&#xA; &#xA;"/>
</DIAttributes>
</DIElement>
<DIElement name="COSTCATEGORY_NAME" datatype="VARCHAR" size="60" >
<DIAttributes>
<DIAttribute name="Description" value="Display name for the Cost Category"/>
<DIAttribute name="ui_mapping_text" value="COSTCATEGORY_MSC_V.COSTCATEGORY_NAME&#xA; &#xA;"/>
</DIAttributes>
</DIElement>
<DIElement name="COSTCATEGORY_NAME_ALT" datatype="VARCHAR" size="60" >
<DIAttributes>
<DIAttribute name="Description" value="Alternate display name for the Cost Category"/>
<DIAttribute name="ui_mapping_text" value="COSTCATEGORY_MSC_V.COSTCATEGORY_NAME_ALT&#xA; &#xA;"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_ACTIVESTATUSIND" datatype="VARCHAR" size="1" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="'Y'"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_CREATEDDATE" datatype="DATETIME" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="$G_MODDATE_LOC"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_DELETEDDATE" datatype="DATETIME" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="NULL"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_DURABLE_KEY" datatype="DECIMAL" precision="18" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="COSTCATEGORY_MSC_V.MD_ENTERPRISE_KEY"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_LASTMODDATE" datatype="DATETIME" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="NULL"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_TRANSENDDATE" datatype="DATETIME" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="NULL"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_TRANSLASTIND" datatype="VARCHAR" size="1" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="'Y'"/>
</DIAttributes>
</DIElement>
<DIElement name="PK_COSTCATEGORY_ID" datatype="DECIMAL" precision="18" scale="0" key="true" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="greatest(5+gen_row_num(),key_generation('DW_DS.DW_ALIAS.COSTCATEGORY_DIM', 'PK_COSTCATEGORY_ID', 1))&#xA; &#xA;"/>
</DIAttributes>
</DIElement>
<DIElement name="SUB_CATEGORY" datatype="VARCHAR" size="60" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="COSTCATEGORY_MSC_V.SUB_CATEGORY"/>
</DIAttributes>
</DIElement>
<DIElement name="DETAILED_CATEGORY" datatype="VARCHAR" size="60" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="COSTCATEGORY_MSC_V.DETAILED_CATEGORY"/>
</DIAttributes>
</DIElement>
</DISchema>
<DISelect>
<DIProjection>
<DIExpression isString="true" expr="$G_BATCH_ID" >
<VARIABLE_REFERENCE name="$G_BATCH_ID" />
</DIExpression>
<DIExpression isString="true" expr="$G_PROCESS_ID" >
<VARIABLE_REFERENCE name="$G_PROCESS_ID" />
</DIExpression>
<DIExpression isString="true" expr="COSTCATEGORY_MSC_V.ACCOUNTING_CODE" >
<COLUMN_REFERENCE  qualifier1="COSTCATEGORY_MSC_V" column="ACCOUNTING_CODE" />
</DIExpression>
<DIExpression isString="true" expr="COSTCATEGORY_MSC_V.COSTCATEGORY_NAME" >
<COLUMN_REFERENCE  qualifier1="COSTCATEGORY_MSC_V" column="COSTCATEGORY_NAME" />
</DIExpression>
<DIExpression isString="true" expr="COSTCATEGORY_MSC_V.COSTCATEGORY_NAME_ALT" >
<COLUMN_REFERENCE  qualifier1="COSTCATEGORY_MSC_V" column="COSTCATEGORY_NAME_ALT" />
</DIExpression>
<DIExpression isString="true" expr="'Y'" >
<CONSTANT value="Y" datatype="VARCHAR" size="1" />
</DIExpression>
<DIExpression isString="true" expr="$G_MODDATE_LOC" >
<VARIABLE_REFERENCE name="$G_MODDATE_LOC" />
</DIExpression>
<DIExpression isString="true" expr=" NULL " >
<CONSTANT_NULL /></DIExpression>
<DIExpression isString="true" expr="COSTCATEGORY_MSC_V.MD_ENTERPRISE_KEY" >
<COLUMN_REFERENCE  qualifier1="COSTCATEGORY_MSC_V" column="MD_ENTERPRISE_KEY" />
</DIExpression>
<DIExpression isString="true" expr=" NULL " >
<CONSTANT_NULL /></DIExpression>
<DIExpression isString="true" expr=" NULL " >
<CONSTANT_NULL /></DIExpression>
<DIExpression isString="true" expr="'Y'" >
<CONSTANT value="Y" datatype="VARCHAR" size="1" />
</DIExpression>
<DIExpression isString="true" expr="greatest((5 + gen_row_num()), key_generation(DW_DS.DW_ALIAS.COSTCATEGORY_DIM, 'PK_COSTCATEGORY_ID', 1) )" >
<FUNCTION_CALL name="greatest"  type="DI" >
<ADD>
<CONSTANT value="5" datatype="INT" />
<FUNCTION_CALL name="gen_row_num"  type="DI" />
</ADD>
<FUNCTION_CALL name="key_generation"  type="DI" tableDatastore="DW_DS" tableOwner="DW_ALIAS" tableName="COSTCATEGORY_DIM" >
<CONSTANT value="PK_COSTCATEGORY_ID" datatype="VARCHAR" size="18" />
<CONSTANT value="1" datatype="INT" />
</FUNCTION_CALL>
</FUNCTION_CALL>
</DIExpression>
<DIExpression isString="true" expr="COSTCATEGORY_MSC_V.SUB_CATEGORY" >
<COLUMN_REFERENCE  qualifier1="COSTCATEGORY_MSC_V" column="SUB_CATEGORY" />
</DIExpression>
<DIExpression isString="true" expr="COSTCATEGORY_MSC_V.DETAILED_CATEGORY" >
<COLUMN_REFERENCE  qualifier1="COSTCATEGORY_MSC_V" column="DETAILED_CATEGORY" />
</DIExpression>
</DIProjection>
<DIFrom>
<DITableSpec name="COSTCATEGORY_MSC_V" />
</DIFrom>
</DISelect>
<DIAttributes>
<DIAttribute name="distinct_run_as_separate_process" value="no"/>
<DIAttribute name="group_by_run_as_separate_process" value="no"/>
<DIAttribute name="join_run_as_separate_process" value="no"/>
<DIAttribute name="order_by_run_as_separate_process" value="no"/>
<DIAttribute name="run_as_separate_process" value="no"/>
</DIAttributes>
</DIQuery>

<DIDatabaseTableSource typeId="22" datastoreName="DWSTAGING_DS" ownerName="DWSTAGING_ALIAS" tableName="COSTCATEGORY_MSC_V" >
<DIOutputView name="COSTCATEGORY_MSC_V"  />
<DIAttributes>
<DIAttribute name="array_fetch_size" value="1000"/>
<DIAttribute name="cache" value="yes"/>
<DIAttribute name="connection_port" value="no"/>
<DIAttribute name="enable_partitioning" value="no"/>
<DIAttribute name="name" value="DWSTAGING_DS"/>
<DIAttribute name="package_size" value="0"/>
<DIAttribute name="reader_is_DB2CDC_table" value="no"/>
<DIAttribute name="reader_overflow_file" value="overflow_file"/>
<DIAttribute name="reader_template_table" value="no"/>
<DIAttribute name="reader_use_overflow_file" value="no"/>
<DIAttribute name="reader_use_trex_transaction" value="no"/>
<DIAttribute name="table_weight" value="0"/>
</DIAttributes>
</DIDatabaseTableSource>

<DIDatabaseTableTarget typeID="11" bulkLoader="false" datastoreName="DWSTAGING_DS" ownerName="DWSTAGING_ALIAS" tableName="COSTCATEGORY_DIM_XFRN" >
<DIInputView name="QRY_NEW"  />
<DIAttributes>
<DIAttribute name="LDRLiveLoad" value="no"/>
<DIAttribute name="Table_Type" value="TABLE"/>
<DIAttribute name="connection_port" value="no"/>
<DIAttribute name="ldr_configuration_enabled" value="yes"/>
<DIAttribute name="ldr_configurations" hasNestedXMLTree ="true">
<LDRConfigurations>
<LDRConfiguration database_type="Microsoft_SQL_Server" database_version="Microsoft SQL Server 2005">
<auto_correct_using_merge>yes</auto_correct_using_merge>
<bulk_ldr_all_rows/>
<bulk_ldr_max_errors/>
<bulk_ldr_rows_per_commit>1000</bulk_ldr_rows_per_commit>
<enable_partitioning>no</enable_partitioning>
<ignore_column_case>yes</ignore_column_case>
<ignore_columns_null>no</ignore_columns_null>
<ignore_columns_value/>
<loader_auto_correct>no</loader_auto_correct>
<loader_bulk_load>1</loader_bulk_load>
<loader_compare_column>compare_by_name</loader_compare_column>
<loader_delete_map/>
<loader_drop_and_create_table>no</loader_drop_and_create_table>
<loader_insert_map/>
<loader_load_choice>append</loader_load_choice>
<loader_num_parallel_loaders>1</loader_num_parallel_loaders>
<loader_overflow_file>overflow_file</loader_overflow_file>
<loader_post_load1/>
<loader_pre_load1/>
<loader_quote_names>0</loader_quote_names>
<loader_transactional>no</loader_transactional>
<loader_transactional_order>0</loader_transactional_order>
<loader_update_key_columns>no</loader_update_key_columns>
<loader_update_map/>
<loader_use_user_defined_keys>no</loader_use_user_defined_keys>
<loader_xact_size>1000</loader_xact_size>
<mssql_bulk_ldr_mode>truncate</mssql_bulk_ldr_mode>
<mssql_bulk_ldr_packet_size>4</mssql_bulk_ldr_packet_size>
<overflow_file_format>write_data</overflow_file_format>
<overriding_substitution_parameter_for_tablename/>
<use_overflow_file>no</use_overflow_file>
<use_unicode_varchar>no</use_unicode_varchar>
<sql_text/>
</LDRConfiguration>
</LDRConfigurations>
</DIAttribute>
<DIAttribute name="loader_template_table" value="no"/>
<DIAttribute name="name" value="DWSTAGING_DS"/>
<DIAttribute name="use_unicode_varchar" value="no"/>
</DIAttributes>
</DIDatabaseTableTarget>

</DITransforms>
<DIAttributes>
<DIAttribute name="Cache_type" value="pageable_cache"/>
<DIAttribute name="Parallelism_degree" value="0"/>
<DIAttribute name="allows_both_input_and_output" value="yes"/>
<DIAttribute name="run_once" value="no"/>
<DIAttribute name="use_dataflow_links" value="no"/>
<DIAttribute name="use_datastore_links" value="yes"/>
<DIAttribute name="validation_xform_exists" value="no"/>
<DIAttribute name="validation_xform_stats" value="no"/>
</DIAttributes>
</DIDataflow>
<DIWorkflow name="ITFUNCTION_XFR_DIM_WF" typeId="2" >
<DIUIOptions>
<DIAnnotation name="ANNOTATION_0"><DIAttribute name="ObjectDesc" value="This workflow is responsible for loading dimension records into target staging and processing the flagged records into the appropriate load-ready XFR tables  (XFRU for slowly changing dimension type 1), (XFRN for new dimension records). "/>
</DIAnnotation></DIUIOptions>
<DIProperties>
<DIAttribute name="Description" value="The workflow {TARGET DIMENSION NAME}_XFR_WF is the workflow responsible for loading dimension tables in target staging.  The workflow will be composed of the following objects:&#xA;•&#x9;{TARGET DIMENSION NAME}_XFR_TRY – The beginning of the TRY/CATCH block in Data Services&#xA;•&#x9;{TARGET DIMENSION NAME}_XFR_START_SC – The script that calls the custom function that initiates the metadata tracking for the workflow. The script also calls the custom function that creates pseudo surrogate key record. &#xA;•&#x9;{TARGET DIMENSION NAME}_XFR_DF – The dataflow that based on the incoming Multiple Source Consolidation MSC table, checks the value of the MD_FLAG field for each record, which will specify if the record is of type insert, update or delete.&#xA;•&#x9;{TARGET DIMENSION NAME}_XFR_END_SC – The script that calls the custom function that closes the metadata for the workflow.&#xA;•&#x9;{TARGET DIMENSION NAME}_XFR_CATCH – The end of the TRY/CATCH block.  It contains the script that calls the custom function which writes metadata if there is a failure."/>
</DIProperties>
<DIVariables>
<DIElement paramType="LOCAL" name="$L_IDENTIFIER" datatype="VARCHAR" size="100" >
</DIElement>
</DIVariables>
<DISteps>
<DITryStep typeId="13" >
<DIUIOptions>
<DIAttribute name="ObjectDesc" value="the Try of the Try / Catch Block"/>
<DIAttribute name="ui_display_name" value="ITFUNCTION_XFR_DIM_TRY"/>
</DIUIOptions>
<DISteps>
<DIScript>
<DIUIOptions>
<DIAttribute name="ObjectDesc" value="The workflow script object which contains the script to call the custom start workflow function.  This script opens the metadata records that are part of this process"/>
<DIAttribute name="ui_display_name" value="ITFUNCTION_XFR_DIM_START_SC"/>
<DIAttribute name="ui_script_text" value="# CALL FUNCTION TO TRACK START OF WORKFLOW&#xA;$L_IDENTIFIER = workflow_name();&#xA;ABC_STARTWF_FN($L_IDENTIFIER, $G_PROCESS_ID);&#xA;&#xA;"/>
</DIUIOptions>
<DIAssignmentStep typeId="12" variable="$L_IDENTIFIER" >
<DIExpression isString="true" expr="workflow_name()" >
<FUNCTION_CALL name="workflow_name"  type="DI" />
</DIExpression>
</DIAssignmentStep>
<DIFunctionCallStep typeId="23" >
<DIExpression isString="true" expr="abc_startwf_fn($L_IDENTIFIER, $G_PROCESS_ID)" >
<FUNCTION_CALL name="abc_startwf_fn"  type="DI" >
<VARIABLE_REFERENCE name="$L_IDENTIFIER" />
<VARIABLE_REFERENCE name="$G_PROCESS_ID" />
</FUNCTION_CALL>
</DIExpression>
</DIFunctionCallStep>
</DIScript>
<DICallStep typeId="1"  calledObjectType="Dataflow" name="ITFUNCTIONS_XFR_DIM_DF" >
</DICallStep>
<DIScript>
<DIUIOptions>
<DIAttribute name="ObjectDesc" value="The workflow script object that calls the custom end workflow function.  This script closes the metadata records that are part of this process."/>
<DIAttribute name="ui_display_name" value="ITFUNCTION_XFR_DIM_END_SC"/>
<DIAttribute name="ui_script_text" value="# CALL FUNCTION TO TRACK END OF WORKFLOW&#xA;ABC_ENDWF_FN($L_IDENTIFIER, $G_PROCESS_ID);&#xA;"/>
</DIUIOptions>
<DIFunctionCallStep typeId="23" >
<DIExpression isString="true" expr="abc_endwf_fn($L_IDENTIFIER, $G_PROCESS_ID)" >
<FUNCTION_CALL name="abc_endwf_fn"  type="DI" >
<VARIABLE_REFERENCE name="$L_IDENTIFIER" />
<VARIABLE_REFERENCE name="$G_PROCESS_ID" />
</FUNCTION_CALL>
</DIExpression>
</DIFunctionCallStep>
</DIScript>
</DISteps>
<DICatch typeId="20" errorCode="210101" >
<DIUIOptions>
<DIAttribute name="ObjectDesc" value="The workflow catch object is the end of the TRY/CATCH block in BO DS.  This catch block will contain the script object that calls a custom fail workflow function used to write the metadata for failed jobs."/>
<DIAttribute name="ui_display_name" value="ITFUNCTION_XFR_DIM_CATCH"/>
</DIUIOptions>
<DISteps>
<DIScript>
<DIUIOptions>
<DIAttribute name="ui_display_name" value="ITFUNCTION_XFR_DIM_FAIL_SC"/>
<DIAttribute name="ui_script_text" value="# CALL FUNCTION TO TRACK FAIL OF WORKFLOW&#xA;ABC_FAILWF_FN(workflow_name(), $G_PROCESS_ID, 'Error: \[' || error_number() || '\] ' || error_message());"/>
</DIUIOptions>
<DIFunctionCallStep typeId="23" >
<DIExpression isString="true" expr="abc_failwf_fn(workflow_name(), $G_PROCESS_ID, ((('Error: \\[' || error_number()) || '\\] ') || error_message()))" >
<FUNCTION_CALL name="abc_failwf_fn"  type="DI" >
<FUNCTION_CALL name="workflow_name"  type="DI" />
<VARIABLE_REFERENCE name="$G_PROCESS_ID" />
<CONCAT>
<CONCAT>
<CONCAT>
<CONSTANT value="Error: \[" datatype="VARCHAR" size="9" />
<FUNCTION_CALL name="error_number"  type="DI" />
</CONCAT>
<CONSTANT value="\] " datatype="VARCHAR" size="3" />
</CONCAT>
<FUNCTION_CALL name="error_message"  type="DI" />
</CONCAT>
</FUNCTION_CALL>
</DIExpression>
</DIFunctionCallStep>
</DIScript>
</DISteps>
</DICatch>
</DITryStep>
</DISteps>
<DIAttributes>
<DIAttribute name="run_once" value="no"/>
<DIAttribute name="unit_of_recovery" value="no"/>
</DIAttributes>
</DIWorkflow>
<DIDataflow name="ITFUNCTIONS_XFR_DIM_DF" typeId="1" >
<DIUIOptions>
<DIAnnotation name="ANNOTATION_0"><DIAttribute name="ObjectDesc" value="Based on the incoming MSC table, check the value of the MD_FLAG field for each record, which will specify if the record is of type insert, update or delete. The MD_* fields are populated as appropriate in each QRY transform and pushed to the appropriate load ready XFR table."/>
</DIAnnotation></DIUIOptions>
<DIProperties>
<DIAttribute name="Description" value="The dataflow that based on the incoming Multiple Source Consolidation MSC table, checks the value of the MD_FLAG field for each record, which will specify if the record is of type insert, update or . Then process and load the appropriate XFR target staging table."/>
</DIProperties>
<DITransforms>
<DIQuery typeId="122"  >
<DIUIOptions>
<DIAttribute name="ObjectDesc" value="Records with MD_FLAG value of new are marked with new MD attribute values and are pushed to the load-ready XFRN table."/>
<DIAttribute name="ui_acta_from_schema_0" value="QRY_FILTER"/>
<DIAttribute name="ui_display_name" value="QRY_NEW"/>
</DIUIOptions>
<DISchema name="QRY_NEW" >
<DIElement name="ITFUNCTION_NAME" datatype="VARCHAR" size="60" >
<DIAttributes>
<DIAttribute name="Description" value="Display name for the Domain"/>
<DIAttribute name="ui_mapping_text" value="QRY_FILTER.ITFUNCTION_NAME"/>
</DIAttributes>
</DIElement>
<DIElement name="ITFUNCTION_NAME_ALT" datatype="VARCHAR" size="60" >
<DIAttributes>
<DIAttribute name="Description" value="Alternate display name for the Domain"/>
<DIAttribute name="ui_mapping_text" value="QRY_FILTER.ITFUNCTION_NAME_ALT"/>
</DIAttributes>
</DIElement>
<DIElement name="PK_ITFUNCTION_ID" datatype="DECIMAL" precision="18" scale="0" key="true" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="QRY_FILTER.MD_ENTERPRISE_KEY"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_ACTIVESTATUSIND" datatype="VARCHAR" size="1" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="'Y'"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_BATCH_ID" datatype="DECIMAL" precision="19" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="QRY_FILTER.MD_BATCH_ID"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_CREATEDDATE" datatype="DATETIME" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="$G_MODDATE_LOC"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_DELETEDDATE" datatype="DATETIME" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="null"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_DURABLE_KEY" datatype="DECIMAL" precision="18" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="QRY_FILTER.MD_ENTERPRISE_KEY"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_LASTMODDATE" datatype="DATETIME" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="$G_MODDATE_LOC"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_PROCESS_ID" datatype="DECIMAL" precision="19" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="QRY_FILTER.MD_PROCESS_ID"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_TRANSENDDATE" datatype="DATETIME" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="null"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_TRANSLASTIND" datatype="VARCHAR" size="1" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="'Y'"/>
</DIAttributes>
</DIElement>
</DISchema>
<DISelect isDistinct="true">
<DIProjection>
<DIExpression isString="true" expr="QRY_FILTER.ITFUNCTION_NAME" >
<COLUMN_REFERENCE  qualifier1="QRY_FILTER" column="ITFUNCTION_NAME" />
</DIExpression>
<DIExpression isString="true" expr="QRY_FILTER.ITFUNCTION_NAME_ALT" >
<COLUMN_REFERENCE  qualifier1="QRY_FILTER" column="ITFUNCTION_NAME_ALT" />
</DIExpression>
<DIExpression isString="true" expr="QRY_FILTER.MD_ENTERPRISE_KEY" >
<COLUMN_REFERENCE  qualifier1="QRY_FILTER" column="MD_ENTERPRISE_KEY" />
</DIExpression>
<DIExpression isString="true" expr="'Y'" >
<CONSTANT value="Y" datatype="VARCHAR" size="1" />
</DIExpression>
<DIExpression isString="true" expr="QRY_FILTER.MD_BATCH_ID" >
<COLUMN_REFERENCE  qualifier1="QRY_FILTER" column="MD_BATCH_ID" />
</DIExpression>
<DIExpression isString="true" expr="$G_MODDATE_LOC" >
<VARIABLE_REFERENCE name="$G_MODDATE_LOC" />
</DIExpression>
<DIExpression isString="true" expr=" NULL " >
<CONSTANT_NULL /></DIExpression>
<DIExpression isString="true" expr="QRY_FILTER.MD_ENTERPRISE_KEY" >
<COLUMN_REFERENCE  qualifier1="QRY_FILTER" column="MD_ENTERPRISE_KEY" />
</DIExpression>
<DIExpression isString="true" expr="$G_MODDATE_LOC" >
<VARIABLE_REFERENCE name="$G_MODDATE_LOC" />
</DIExpression>
<DIExpression isString="true" expr="QRY_FILTER.MD_PROCESS_ID" >
<COLUMN_REFERENCE  qualifier1="QRY_FILTER" column="MD_PROCESS_ID" />
</DIExpression>
<DIExpression isString="true" expr=" NULL " >
<CONSTANT_NULL /></DIExpression>
<DIExpression isString="true" expr="'Y'" >
<CONSTANT value="Y" datatype="VARCHAR" size="1" />
</DIExpression>
</DIProjection>
<DIFrom>
<DITableSpec name="QRY_FILTER" />
</DIFrom>
</DISelect>
<DIAttributes>
<DIAttribute name="distinct_run_as_separate_process" value="no"/>
<DIAttribute name="group_by_run_as_separate_process" value="no"/>
<DIAttribute name="join_run_as_separate_process" value="no"/>
<DIAttribute name="order_by_run_as_separate_process" value="no"/>
<DIAttribute name="run_as_separate_process" value="no"/>
</DIAttributes>
</DIQuery>

<DIExcelSource typeID="130" datastoreName="ITFUNCTIONS_XTN_SOURCE_XLS" name="ITFUNCTIONS_XTN_SOURCE_XLS" >
<DIOutputView name="ITFUNCTIONS_XTN_SOURCE_XLS"  />
<DIAttributes>
<DIAttribute name="MSExcel_capture_data_conversion" value="no"/>
<DIAttribute name="cache" value="no"/>
<DIAttribute name="connection_port" value="no"/>
<DIAttribute name="reader_filename_col" value="DI_FILENAME"/>
<DIAttribute name="reader_filename_col_size" value="100"/>
<DIAttribute name="reader_filename_only" value="yes"/>
<DIAttribute name="reader_include_filename" value="no"/>
<DIAttribute name="table_weight" value="0"/>
</DIAttributes>
</DIExcelSource>

<DIDatabaseTableTarget typeID="11" bulkLoader="false" datastoreName="DWSTAGING_DS" ownerName="DWSTAGING_ALIAS" tableName="ITFUNCTION_DIM_XFRN" >
<DIInputView name="QRY_NEW"  />
<DIAttributes>
<DIAttribute name="LDRLiveLoad" value="no"/>
<DIAttribute name="Table_Type" value="TABLE"/>
<DIAttribute name="connection_port" value="no"/>
<DIAttribute name="ldr_configuration_enabled" value="yes"/>
<DIAttribute name="ldr_configurations" hasNestedXMLTree ="true">

<LDRConfigurations>
<LDRConfiguration database_type="Microsoft_SQL_Server" database_version="Microsoft SQL Server 2005">
<bulk_ldr_all_rows></bulk_ldr_all_rows>
<bulk_ldr_max_errors></bulk_ldr_max_errors>
<bulk_ldr_rows_per_commit>1000</bulk_ldr_rows_per_commit>
<enable_partitioning>no</enable_partitioning>
<ignore_column_case>yes</ignore_column_case>
<ignore_columns_null>no</ignore_columns_null>
<ignore_columns_value></ignore_columns_value>
<loader_auto_correct>no</loader_auto_correct>
<loader_bulk_load>1</loader_bulk_load>
<loader_compare_column>compare_by_name</loader_compare_column>
<loader_delete_map></loader_delete_map>
<loader_drop_and_create_table>no</loader_drop_and_create_table>
<loader_insert_map></loader_insert_map>
<loader_load_choice>append</loader_load_choice>
<loader_num_parallel_loaders>1</loader_num_parallel_loaders>
<loader_overflow_file>overflow_file</loader_overflow_file>
<loader_post_load1></loader_post_load1>
<loader_pre_load1></loader_pre_load1>
<loader_quote_names>0</loader_quote_names>
<loader_transactional>no</loader_transactional>
<loader_transactional_order>0</loader_transactional_order>
<loader_update_key_columns>no</loader_update_key_columns>
<loader_update_map></loader_update_map>
<loader_use_user_defined_keys>no</loader_use_user_defined_keys>
<loader_xact_size>1000</loader_xact_size>
<mssql_bulk_ldr_mode>truncate</mssql_bulk_ldr_mode>
<mssql_bulk_ldr_packet_size>4</mssql_bulk_ldr_packet_size>
<overflow_file_format>write_data</overflow_file_format>
<use_overflow_file>no</use_overflow_file>
<use_unicode_varchar>no</use_unicode_varchar>
<sql_text></sql_text>
</LDRConfiguration>
</LDRConfigurations>
</DIAttribute>
<DIAttribute name="loader_template_table" value="no"/>
<DIAttribute name="name" value="DWSTAGING_DS"/>
<DIAttribute name="use_unicode_varchar" value="no"/>
</DIAttributes>
</DIDatabaseTableTarget>

<DIQuery typeId="122"  >
<DIUIOptions>
<DIAttribute name="ui_acta_from_schema_0" value="ITFUNCTIONS_XTN_SOURCE_XLS"/>
<DIAttribute name="ui_display_name" value="QRY_PK_ID"/>
</DIUIOptions>
<DISchema name="QRY_PK_ID" >
<DIElement name="ITFUNCTION_NAME" datatype="VARCHAR" size="255" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="ITFUNCTIONS_XTN_SOURCE_XLS.ITFUNCTION_NAME&#xA; &#xA;"/>
</DIAttributes>
</DIElement>
<DIElement name="ITFUNCTION_NAME_ALT" datatype="VARCHAR" size="255" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="ITFUNCTIONS_XTN_SOURCE_XLS.ITFUNCTION_NAME_ALT&#xA; &#xA;"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_BATCH_ID" datatype="DECIMAL" precision="19" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="$G_BATCH_ID &#xA; &#xA;"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_PROCESS_ID" datatype="DECIMAL" precision="19" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="$G_PROCESS_ID &#xA; &#xA;"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_BUSINESS_KEY" datatype="VARCHAR" size="100" key="true" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="ITFUNCTIONS_XTN_SOURCE_XLS.ITFUNCTION_NAME&#xA; &#xA;"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_ENTERPRISE_KEY" datatype="DECIMAL" precision="18" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="lookup_ext([DW_DS.DW_ALIAS.ITFUNCTION_DIM,'PRE_LOAD_CACHE','MAX'], [PK_ITFUNCTION_ID],[-2],[ITFUNCTION_NAME,'=',ITFUNCTIONS_XTN_SOURCE_XLS.ITFUNCTION_NAME]) SET (&quot;run_as_separate_process&quot;='no')"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_FLAG" datatype="VARCHAR" size="10" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="$G_FLAG_NEW &#xA; &#xA;"/>
</DIAttributes>
</DIElement>
</DISchema>
<DISelect>
<DIProjection>
<DIExpression isString="true" expr="ITFUNCTIONS_XTN_SOURCE_XLS.ITFUNCTION_NAME" >
<COLUMN_REFERENCE  qualifier1="ITFUNCTIONS_XTN_SOURCE_XLS" column="ITFUNCTION_NAME" />
</DIExpression>
<DIExpression isString="true" expr="ITFUNCTIONS_XTN_SOURCE_XLS.ITFUNCTION_NAME_ALT" >
<COLUMN_REFERENCE  qualifier1="ITFUNCTIONS_XTN_SOURCE_XLS" column="ITFUNCTION_NAME_ALT" />
</DIExpression>
<DIExpression isString="true" expr="$G_BATCH_ID" >
<VARIABLE_REFERENCE name="$G_BATCH_ID" />
</DIExpression>
<DIExpression isString="true" expr="$G_PROCESS_ID" >
<VARIABLE_REFERENCE name="$G_PROCESS_ID" />
</DIExpression>
<DIExpression isString="true" expr="ITFUNCTIONS_XTN_SOURCE_XLS.ITFUNCTION_NAME" >
<COLUMN_REFERENCE  qualifier1="ITFUNCTIONS_XTN_SOURCE_XLS" column="ITFUNCTION_NAME" />
</DIExpression>
<DIExpression isString="true" expr="lookup_ext([DW_DS.DW_ALIAS.ITFUNCTION_DIM, 'PRE_LOAD_CACHE', 'MAX'], [ PK_ITFUNCTION_ID ], [ -2 ], [ ITFUNCTION_NAME, '=', ITFUNCTIONS_XTN_SOURCE_XLS.ITFUNCTION_NAME ]) &#xA;SET(&quot;run_as_separate_process&quot; = 'no')&#xA;" >
<FUNCTION_CALL name="lookup_ext"  type="DI" tableDatastore="DW_DS" tableOwner="DW_ALIAS" tableName="ITFUNCTION_DIM" >
<CONSTANT value="PRE_LOAD_CACHE" datatype="VARCHAR" size="14" />
<CONSTANT value="MAX" datatype="VARCHAR" size="3" />
<COLUMN_REFERENCE  qualifier1="ITFUNCTIONS_XTN_SOURCE_XLS" column="ITFUNCTION_NAME" />
<CONSTANT value="-2" datatype="INT" />
<DIAttributes>
<DIAttribute name="run_as_separate_process" value="no"/>
</DIAttributes>
</FUNCTION_CALL>
</DIExpression>
<DIExpression isString="true" expr="$G_FLAG_NEW" >
<VARIABLE_REFERENCE name="$G_FLAG_NEW" />
</DIExpression>
</DIProjection>
<DIFrom>
<DITableSpec name="ITFUNCTIONS_XTN_SOURCE_XLS" />
</DIFrom>
</DISelect>
<DIAttributes>
<DIAttribute name="distinct_run_as_separate_process" value="no"/>
<DIAttribute name="group_by_run_as_separate_process" value="no"/>
<DIAttribute name="join_run_as_separate_process" value="no"/>
<DIAttribute name="order_by_run_as_separate_process" value="no"/>
<DIAttribute name="run_as_separate_process" value="no"/>
</DIAttributes>
</DIQuery>

<DIQuery typeId="122"  >
<DIUIOptions>
<DIAttribute name="ui_acta_from_schema_0" value="QRY_PK_ID"/>
<DIAttribute name="ui_display_name" value="QRY_FILTER"/>
<DIAttribute name="ui_where_text" value="QRY_PK_ID.MD_ENTERPRISE_KEY=-2"/>
</DIUIOptions>
<DISchema name="QRY_FILTER" >
<DIElement name="ITFUNCTION_NAME" datatype="VARCHAR" size="255" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="QRY_PK_ID.ITFUNCTION_NAME"/>
</DIAttributes>
</DIElement>
<DIElement name="ITFUNCTION_NAME_ALT" datatype="VARCHAR" size="255" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="QRY_PK_ID.ITFUNCTION_NAME_ALT"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_BATCH_ID" datatype="DECIMAL" precision="19" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="QRY_PK_ID.MD_BATCH_ID"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_PROCESS_ID" datatype="DECIMAL" precision="19" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="QRY_PK_ID.MD_PROCESS_ID"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_BUSINESS_KEY" datatype="VARCHAR" size="100" key="true" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="QRY_PK_ID.MD_BUSINESS_KEY"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_ENTERPRISE_KEY" datatype="DECIMAL" precision="18" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="greatest(5+gen_row_num(),key_generation('DW_DS.DW_ALIAS.ITFUNCTION_DIM', 'PK_ITFUNCTION_ID',1))"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_FLAG" datatype="VARCHAR" size="10" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="QRY_PK_ID.MD_FLAG"/>
</DIAttributes>
</DIElement>
</DISchema>
<DISelect>
<DIProjection>
<DIExpression isString="true" expr="QRY_PK_ID.ITFUNCTION_NAME" >
<COLUMN_REFERENCE  qualifier1="QRY_PK_ID" column="ITFUNCTION_NAME" />
</DIExpression>
<DIExpression isString="true" expr="QRY_PK_ID.ITFUNCTION_NAME_ALT" >
<COLUMN_REFERENCE  qualifier1="QRY_PK_ID" column="ITFUNCTION_NAME_ALT" />
</DIExpression>
<DIExpression isString="true" expr="QRY_PK_ID.MD_BATCH_ID" >
<COLUMN_REFERENCE  qualifier1="QRY_PK_ID" column="MD_BATCH_ID" />
</DIExpression>
<DIExpression isString="true" expr="QRY_PK_ID.MD_PROCESS_ID" >
<COLUMN_REFERENCE  qualifier1="QRY_PK_ID" column="MD_PROCESS_ID" />
</DIExpression>
<DIExpression isString="true" expr="QRY_PK_ID.MD_BUSINESS_KEY" >
<COLUMN_REFERENCE  qualifier1="QRY_PK_ID" column="MD_BUSINESS_KEY" />
</DIExpression>
<DIExpression isString="true" expr="greatest((5 + gen_row_num()), key_generation(DW_DS.DW_ALIAS.ITFUNCTION_DIM, 'PK_ITFUNCTION_ID', 1) )" >
<FUNCTION_CALL name="greatest"  type="DI" >
<ADD>
<CONSTANT value="5" datatype="INT" />
<FUNCTION_CALL name="gen_row_num"  type="DI" />
</ADD>
<FUNCTION_CALL name="key_generation"  type="DI" tableDatastore="DW_DS" tableOwner="DW_ALIAS" tableName="ITFUNCTION_DIM" >
<CONSTANT value="PK_ITFUNCTION_ID" datatype="VARCHAR" size="16" />
<CONSTANT value="1" datatype="INT" />
</FUNCTION_CALL>
</FUNCTION_CALL>
</DIExpression>
<DIExpression isString="true" expr="QRY_PK_ID.MD_FLAG" >
<COLUMN_REFERENCE  qualifier1="QRY_PK_ID" column="MD_FLAG" />
</DIExpression>
</DIProjection>
<DIFrom>
<DITableSpec name="QRY_PK_ID" />
</DIFrom>
<DIWhere>
<DIExpression isString="true" expr="(QRY_PK_ID.MD_ENTERPRISE_KEY = -2)" >
<LOGICAL_OP op="EQ">
<COLUMN_REFERENCE  qualifier1="QRY_PK_ID" column="MD_ENTERPRISE_KEY" />
<CONSTANT value="-2" datatype="INT" />
</LOGICAL_OP>
</DIExpression>
</DIWhere>
</DISelect>
<DIAttributes>
<DIAttribute name="distinct_run_as_separate_process" value="no"/>
<DIAttribute name="group_by_run_as_separate_process" value="no"/>
<DIAttribute name="join_run_as_separate_process" value="no"/>
<DIAttribute name="order_by_run_as_separate_process" value="no"/>
<DIAttribute name="run_as_separate_process" value="no"/>
</DIAttributes>
</DIQuery>

</DITransforms>
<DIAttributes>
<DIAttribute name="Cache_type" value="pageable_cache"/>
<DIAttribute name="Parallelism_degree" value="0"/>
<DIAttribute name="allows_both_input_and_output" value="yes"/>
<DIAttribute name="run_once" value="no"/>
<DIAttribute name="use_dataflow_links" value="no"/>
<DIAttribute name="use_datastore_links" value="yes"/>
<DIAttribute name="validation_xform_exists" value="no"/>
<DIAttribute name="validation_xform_stats" value="no"/>
</DIAttributes>
</DIDataflow>
<DIWorkflow name="MEASURETYPE_XFR_DIM_WF" typeId="2" >
<DIUIOptions>
<DIAnnotation name="ANNOTATION_0"><DIAttribute name="ObjectDesc" value="This workflow is responsible for loading dimension records into target staging and processing the flagged records into the appropriate load-ready XFR tables  (XFRU for slowly changing dimension type 1), (XFRN for new dimension records). "/>
</DIAnnotation></DIUIOptions>
<DIProperties>
<DIAttribute name="Description" value="The workflow {TARGET DIMENSION NAME}_XFR_WF is the workflow responsible for loading dimension tables in target staging.  The workflow will be composed of the following objects:&#xA;•&#x9;{TARGET DIMENSION NAME}_XFR_TRY – The beginning of the TRY/CATCH block in Data Services&#xA;•&#x9;{TARGET DIMENSION NAME}_XFR_START_SC – The script that calls the custom function that initiates the metadata tracking for the workflow. The script also calls the custom function that creates pseudo surrogate key record. &#xA;•&#x9;{TARGET DIMENSION NAME}_XFR_DF – The dataflow that based on the incoming Multiple Source Consolidation MSC table, checks the value of the MD_FLAG field for each record, which will specify if the record is of type insert, update or delete.&#xA;•&#x9;{TARGET DIMENSION NAME}_XFR_END_SC – The script that calls the custom function that closes the metadata for the workflow.&#xA;•&#x9;{TARGET DIMENSION NAME}_XFR_CATCH – The end of the TRY/CATCH block.  It contains the script that calls the custom function which writes metadata if there is a failure."/>
</DIProperties>
<DIVariables>
<DIElement paramType="LOCAL" name="$L_IDENTIFIER" datatype="VARCHAR" size="100" >
</DIElement>
</DIVariables>
<DISteps>
<DITryStep typeId="13" >
<DIUIOptions>
<DIAttribute name="ObjectDesc" value="the Try of the Try / Catch Block"/>
<DIAttribute name="ui_display_name" value="MEASURETYPE_XFR_DIM_TRY"/>
</DIUIOptions>
<DISteps>
<DIScript>
<DIUIOptions>
<DIAttribute name="ObjectDesc" value="The workflow script object which contains the script to call the custom start workflow function.  This script opens the metadata records that are part of this process"/>
<DIAttribute name="ui_display_name" value="MEASURETYPE_XFR_DIM_START_SC"/>
<DIAttribute name="ui_script_text" value="# CALL FUNCTION TO TRACK START OF WORKFLOW&#xD;&#xA;$L_IDENTIFIER = workflow_name();&#xD;&#xA;ABC_STARTWF_FN($L_IDENTIFIER, $G_PROCESS_ID);&#xD;&#xA;&#xD;&#xA;"/>
</DIUIOptions>
<DIAssignmentStep typeId="12" variable="$L_IDENTIFIER" >
<DIExpression isString="true" expr="workflow_name()" >
<FUNCTION_CALL name="workflow_name"  type="DI" />
</DIExpression>
</DIAssignmentStep>
<DIFunctionCallStep typeId="23" >
<DIExpression isString="true" expr="abc_startwf_fn($L_IDENTIFIER, $G_PROCESS_ID)" >
<FUNCTION_CALL name="abc_startwf_fn"  type="DI" >
<VARIABLE_REFERENCE name="$L_IDENTIFIER" />
<VARIABLE_REFERENCE name="$G_PROCESS_ID" />
</FUNCTION_CALL>
</DIExpression>
</DIFunctionCallStep>
</DIScript>
<DICallStep typeId="1"  calledObjectType="Dataflow" name="MEASURETYPE_XFR_DIM_DF" >
</DICallStep>
<DIScript>
<DIUIOptions>
<DIAttribute name="ObjectDesc" value="The workflow script object that calls the custom end workflow function.  This script closes the metadata records that are part of this process."/>
<DIAttribute name="ui_display_name" value="MEASURETYPE_XFR_DIM_END_SC"/>
<DIAttribute name="ui_script_text" value="# CALL FUNCTION TO TRACK END OF WORKFLOW&#xA;ABC_ENDWF_FN($L_IDENTIFIER, $G_PROCESS_ID);&#xA;"/>
</DIUIOptions>
<DIFunctionCallStep typeId="23" >
<DIExpression isString="true" expr="abc_endwf_fn($L_IDENTIFIER, $G_PROCESS_ID)" >
<FUNCTION_CALL name="abc_endwf_fn"  type="DI" >
<VARIABLE_REFERENCE name="$L_IDENTIFIER" />
<VARIABLE_REFERENCE name="$G_PROCESS_ID" />
</FUNCTION_CALL>
</DIExpression>
</DIFunctionCallStep>
</DIScript>
</DISteps>
<DICatch typeId="20" errorCode="210101" >
<DIUIOptions>
<DIAttribute name="ObjectDesc" value="The workflow catch object is the end of the TRY/CATCH block in BO DS.  This catch block will contain the script object that calls a custom fail workflow function used to write the metadata for failed jobs."/>
<DIAttribute name="ui_display_name" value="MEASURETYPE_XFR_DIM_CATCH"/>
</DIUIOptions>
<DISteps>
<DIScript>
<DIUIOptions>
<DIAttribute name="ui_display_name" value="MEASURETYPE_XFR_DIM_FAIL_SC"/>
<DIAttribute name="ui_script_text" value="# CALL FUNCTION TO TRACK FAIL OF WORKFLOW&#xA;ABC_FAILWF_FN(workflow_name(), $G_PROCESS_ID, 'Error: \[' || error_number() || '\] ' || error_message());"/>
</DIUIOptions>
<DIFunctionCallStep typeId="23" >
<DIExpression isString="true" expr="abc_failwf_fn(workflow_name(), $G_PROCESS_ID, ((('Error: \\[' || error_number()) || '\\] ') || error_message()))" >
<FUNCTION_CALL name="abc_failwf_fn"  type="DI" >
<FUNCTION_CALL name="workflow_name"  type="DI" />
<VARIABLE_REFERENCE name="$G_PROCESS_ID" />
<CONCAT>
<CONCAT>
<CONCAT>
<CONSTANT value="Error: \[" datatype="VARCHAR" size="9" />
<FUNCTION_CALL name="error_number"  type="DI" />
</CONCAT>
<CONSTANT value="\] " datatype="VARCHAR" size="3" />
</CONCAT>
<FUNCTION_CALL name="error_message"  type="DI" />
</CONCAT>
</FUNCTION_CALL>
</DIExpression>
</DIFunctionCallStep>
</DIScript>
</DISteps>
</DICatch>
</DITryStep>
</DISteps>
<DIAttributes>
<DIAttribute name="run_once" value="no"/>
<DIAttribute name="unit_of_recovery" value="no"/>
</DIAttributes>
</DIWorkflow>
<DIDataflow name="MEASURETYPE_XFR_DIM_DF" typeId="1" >
<DIUIOptions>
<DIAnnotation name="ANNOTATION_0"><DIAttribute name="ObjectDesc" value="Based on the incoming MSC table, check the value of the MD_FLAG field for each record, which will specify if the record is of type insert, update or delete. The MD_* fields are populated as appropriate in each QRY transform and pushed to the appropriate load ready XFR table."/>
</DIAnnotation></DIUIOptions>
<DIProperties>
<DIAttribute name="Description" value="The dataflow that based on the incoming Multiple Source Consolidation MSC table, checks the value of the MD_FLAG field for each record, which will specify if the record is of type insert, update or . Then process and load the appropriate XFR target staging table."/>
</DIProperties>
<DITransforms>
<DIDatabaseTableTarget typeID="11" bulkLoader="false" datastoreName="DWSTAGING_DS" ownerName="DWSTAGING_ALIAS" tableName="MEASURETYPE_DIM_XFRN" >
<DIInputView name="QRY_PK_MEASURETYPE_ID"  />
<DIAttributes>
<DIAttribute name="LDRLiveLoad" value="no"/>
<DIAttribute name="Table_Type" value="TABLE"/>
<DIAttribute name="connection_port" value="no"/>
<DIAttribute name="ldr_configuration_enabled" value="yes"/>
<DIAttribute name="ldr_configurations" hasNestedXMLTree ="true">

<LDRConfigurations>
<LDRConfiguration database_type="Microsoft_SQL_Server" database_version="Microsoft SQL Server 2005">
<auto_correct_using_merge>Yes</auto_correct_using_merge>
<bulk_ldr_all_rows></bulk_ldr_all_rows>
<bulk_ldr_max_errors></bulk_ldr_max_errors>
<bulk_ldr_rows_per_commit>1000</bulk_ldr_rows_per_commit>
<enable_partitioning>no</enable_partitioning>
<ignore_column_case>yes</ignore_column_case>
<ignore_columns_null>No</ignore_columns_null>
<ignore_columns_value></ignore_columns_value>
<loader_auto_correct>No</loader_auto_correct>
<loader_bulk_load>1</loader_bulk_load>
<loader_compare_column>Compare by name</loader_compare_column>
<loader_delete_map></loader_delete_map>
<loader_drop_and_create_table>no</loader_drop_and_create_table>
<loader_insert_map></loader_insert_map>
<loader_load_choice>append</loader_load_choice>
<loader_num_parallel_loaders>1</loader_num_parallel_loaders>
<loader_overflow_file>overflow_file</loader_overflow_file>
<loader_post_load1></loader_post_load1>
<loader_pre_load1></loader_pre_load1>
<loader_quote_names>0</loader_quote_names>
<loader_transactional>no</loader_transactional>
<loader_transactional_order>0</loader_transactional_order>
<loader_update_key_columns>No</loader_update_key_columns>
<loader_update_map></loader_update_map>
<loader_use_user_defined_keys>No</loader_use_user_defined_keys>
<loader_xact_size>1000</loader_xact_size>
<mssql_bulk_ldr_mode>truncate</mssql_bulk_ldr_mode>
<mssql_bulk_ldr_packet_size>4</mssql_bulk_ldr_packet_size>
<overflow_file_format>Write data</overflow_file_format>
<overriding_substitution_parameter_for_tablename></overriding_substitution_parameter_for_tablename>
<use_overflow_file>No</use_overflow_file>
<use_unicode_varchar>no</use_unicode_varchar>
<sql_text></sql_text>
</LDRConfiguration>
</LDRConfigurations>
</DIAttribute>
<DIAttribute name="loader_template_table" value="no"/>
<DIAttribute name="name" value="DWSTAGING_DS"/>
<DIAttribute name="use_unicode_varchar" value="no"/>
</DIAttributes>
</DIDatabaseTableTarget>

<DIQuery typeId="122"  >
<DIUIOptions>
<DIAttribute name="ui_acta_from_schema_0" value="Case_UPDATE"/>
<DIAttribute name="ui_display_name" value="QRY_Update"/>
</DIUIOptions>
<DISchema name="QRY_Update" >
<DIElement name="MD_BATCH_ID" datatype="DECIMAL" precision="19" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="$G_BATCH_ID&#xA; &#xA;&#xD;&#xA; &#xD;&#xA;"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_PROCESS_ID" datatype="DECIMAL" precision="19" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="$G_PROCESS_ID &#xA; &#xA;&#xD;&#xA; &#xD;&#xA;"/>
</DIAttributes>
</DIElement>
<DIElement name="MEASURETYPE_NAME" datatype="VARCHAR" size="60" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="Case_UPDATE.MEASURETYPE_NAME&#xA; &#xA;&#xD;&#xA; &#xD;&#xA;"/>
</DIAttributes>
</DIElement>
<DIElement name="DESCRIPTION" datatype="VARCHAR" size="1024" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="Case_UPDATE.DESCRIPTION&#xD;&#xA; &#xD;&#xA;"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_DURABLE_KEY" datatype="DECIMAL" precision="18" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="Case_UPDATE.MD_ENTERPRISE_KEY&#xD;&#xA; &#xD;&#xA;"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_LASTMODDATE" datatype="DATETIME" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="$G_MODDATE_LOC &#xA; &#xA;&#xD;&#xA; &#xD;&#xA;"/>
</DIAttributes>
</DIElement>
</DISchema>
<DISelect>
<DIProjection>
<DIExpression isString="true" expr="$G_BATCH_ID" >
<VARIABLE_REFERENCE name="$G_BATCH_ID" />
</DIExpression>
<DIExpression isString="true" expr="$G_PROCESS_ID" >
<VARIABLE_REFERENCE name="$G_PROCESS_ID" />
</DIExpression>
<DIExpression isString="true" expr="Case_UPDATE.MEASURETYPE_NAME" >
<COLUMN_REFERENCE  qualifier1="Case_UPDATE" column="MEASURETYPE_NAME" />
</DIExpression>
<DIExpression isString="true" expr="Case_UPDATE.DESCRIPTION" >
<COLUMN_REFERENCE  qualifier1="Case_UPDATE" column="DESCRIPTION" />
</DIExpression>
<DIExpression isString="true" expr="Case_UPDATE.MD_ENTERPRISE_KEY" >
<COLUMN_REFERENCE  qualifier1="Case_UPDATE" column="MD_ENTERPRISE_KEY" />
</DIExpression>
<DIExpression isString="true" expr="$G_MODDATE_LOC" >
<VARIABLE_REFERENCE name="$G_MODDATE_LOC" />
</DIExpression>
</DIProjection>
<DIFrom>
<DITableSpec name="Case_UPDATE" />
</DIFrom>
<DIOrderBys>
<DIOrderBy direction="ASC">
<DIExpression isString="true" expr="Case_UPDATE.MEASURETYPE_NAME" >
<COLUMN_REFERENCE  qualifier1="Case_UPDATE" column="MEASURETYPE_NAME" />
</DIExpression>
</DIOrderBy>
</DIOrderBys>
</DISelect>
<DIAttributes>
<DIAttribute name="distinct_run_as_separate_process" value="no"/>
<DIAttribute name="group_by_run_as_separate_process" value="no"/>
<DIAttribute name="join_run_as_separate_process" value="no"/>
<DIAttribute name="order_by_run_as_separate_process" value="no"/>
<DIAttribute name="run_as_separate_process" value="no"/>
</DIAttributes>
</DIQuery>

<DIDatabaseTableTarget typeID="11" bulkLoader="false" datastoreName="DWSTAGING_DS" ownerName="DWSTAGING_ALIAS" tableName="MEASURETYPE_DIM_XFRU" >
<DIInputView name="Query"  />
<DIAttributes>
<DIAttribute name="LDRLiveLoad" value="no"/>
<DIAttribute name="Table_Type" value="TABLE"/>
<DIAttribute name="connection_port" value="no"/>
<DIAttribute name="ldr_configuration_enabled" value="yes"/>
<DIAttribute name="ldr_configurations" hasNestedXMLTree ="true">

<LDRConfigurations>
<LDRConfiguration database_type="Microsoft_SQL_Server" database_version="Microsoft SQL Server 2005">
<auto_correct_using_merge>Yes</auto_correct_using_merge>
<bulk_ldr_all_rows></bulk_ldr_all_rows>
<bulk_ldr_max_errors></bulk_ldr_max_errors>
<bulk_ldr_rows_per_commit>1000</bulk_ldr_rows_per_commit>
<enable_partitioning>no</enable_partitioning>
<ignore_column_case>yes</ignore_column_case>
<ignore_columns_null>No</ignore_columns_null>
<ignore_columns_value></ignore_columns_value>
<loader_auto_correct>No</loader_auto_correct>
<loader_bulk_load>1</loader_bulk_load>
<loader_compare_column>Compare by name</loader_compare_column>
<loader_delete_map></loader_delete_map>
<loader_drop_and_create_table>no</loader_drop_and_create_table>
<loader_insert_map></loader_insert_map>
<loader_load_choice>append</loader_load_choice>
<loader_num_parallel_loaders>1</loader_num_parallel_loaders>
<loader_overflow_file>overflow_file</loader_overflow_file>
<loader_post_load1></loader_post_load1>
<loader_pre_load1></loader_pre_load1>
<loader_quote_names>0</loader_quote_names>
<loader_transactional>no</loader_transactional>
<loader_transactional_order>0</loader_transactional_order>
<loader_update_key_columns>No</loader_update_key_columns>
<loader_update_map></loader_update_map>
<loader_use_user_defined_keys>No</loader_use_user_defined_keys>
<loader_xact_size>1000</loader_xact_size>
<mssql_bulk_ldr_mode>truncate</mssql_bulk_ldr_mode>
<mssql_bulk_ldr_packet_size>4</mssql_bulk_ldr_packet_size>
<overflow_file_format>Write data</overflow_file_format>
<overriding_substitution_parameter_for_tablename></overriding_substitution_parameter_for_tablename>
<use_overflow_file>No</use_overflow_file>
<use_unicode_varchar>no</use_unicode_varchar>
<sql_text></sql_text>
</LDRConfiguration>
</LDRConfigurations>
</DIAttribute>
<DIAttribute name="loader_template_table" value="no"/>
<DIAttribute name="name" value="DWSTAGING_DS"/>
<DIAttribute name="use_unicode_varchar" value="no"/>
</DIAttributes>
</DIDatabaseTableTarget>

<DIQuery typeId="122"  >
<DIUIOptions>
<DIAttribute name="ui_acta_from_schema_0" value="Case_NEW"/>
<DIAttribute name="ui_display_name" value="QRY_PK_MEASURETYPE_ID"/>
</DIUIOptions>
<DISchema name="QRY_PK_MEASURETYPE_ID" >
<DIElement name="MD_BATCH_ID" datatype="DECIMAL" precision="19" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="$G_BATCH_ID&#xA; &#xA;&#xD;&#xA; &#xD;&#xA;"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_PROCESS_ID" datatype="DECIMAL" precision="19" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="$G_PROCESS_ID&#xA; &#xA;&#xD;&#xA; &#xD;&#xA;"/>
</DIAttributes>
</DIElement>
<DIElement name="DESCRIPTION" datatype="VARCHAR" size="1024" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="Case_NEW.DESCRIPTION&#xD;&#xA; &#xD;&#xA;"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_ACTIVESTATUSIND" datatype="VARCHAR" size="1" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="'Y'&#xA; &#xA;&#xD;&#xA; &#xD;&#xA;"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_CREATEDDATE" datatype="DATETIME" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="$G_MODDATE_LOC &#xA; &#xA;&#xD;&#xA; &#xD;&#xA;"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_DELETEDDATE" datatype="DATETIME" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="NULL&#xA; &#xA;&#xD;&#xA; &#xD;&#xA;"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_DURABLE_KEY" datatype="DECIMAL" precision="18" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="Case_NEW.MD_ENTERPRISE_KEY&#xD;&#xA; &#xD;&#xA;"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_LASTMODDATE" datatype="DATETIME" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="NULL&#xA; &#xA;&#xD;&#xA; &#xD;&#xA;"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_TRANSENDDATE" datatype="DATETIME" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="NULL&#xA; &#xA;&#xD;&#xA; &#xD;&#xA;"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_TRANSLASTIND" datatype="VARCHAR" size="1" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="'Y'&#xA; &#xA;&#xD;&#xA; &#xD;&#xA;"/>
</DIAttributes>
</DIElement>
<DIElement name="MEASURETYPE_NAME" datatype="VARCHAR" size="60" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="Case_NEW.MEASURETYPE_NAME&#xA; &#xA;&#xD;&#xA; &#xD;&#xA;"/>
</DIAttributes>
</DIElement>
<DIElement name="PK_MEASURETYPE_ID" datatype="DECIMAL" precision="18" scale="0" key="true" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="greatest(5+gen_row_num(),key_generation('DW_DS.DW_ALIAS.MEASURETYPE_DIM', 'PK_MEASURETYPE_ID',1))&#xA; &#xA;&#xD;&#xA; &#xD;&#xA;"/>
</DIAttributes>
</DIElement>
</DISchema>
<DISelect>
<DIProjection>
<DIExpression isString="true" expr="$G_BATCH_ID" >
<VARIABLE_REFERENCE name="$G_BATCH_ID" />
</DIExpression>
<DIExpression isString="true" expr="$G_PROCESS_ID" >
<VARIABLE_REFERENCE name="$G_PROCESS_ID" />
</DIExpression>
<DIExpression isString="true" expr="Case_NEW.DESCRIPTION" >
<COLUMN_REFERENCE  qualifier1="Case_NEW" column="DESCRIPTION" />
</DIExpression>
<DIExpression isString="true" expr="'Y'" >
<CONSTANT value="Y" datatype="VARCHAR" size="1" />
</DIExpression>
<DIExpression isString="true" expr="$G_MODDATE_LOC" >
<VARIABLE_REFERENCE name="$G_MODDATE_LOC" />
</DIExpression>
<DIExpression isString="true" expr=" NULL " >
<CONSTANT_NULL /></DIExpression>
<DIExpression isString="true" expr="Case_NEW.MD_ENTERPRISE_KEY" >
<COLUMN_REFERENCE  qualifier1="Case_NEW" column="MD_ENTERPRISE_KEY" />
</DIExpression>
<DIExpression isString="true" expr=" NULL " >
<CONSTANT_NULL /></DIExpression>
<DIExpression isString="true" expr=" NULL " >
<CONSTANT_NULL /></DIExpression>
<DIExpression isString="true" expr="'Y'" >
<CONSTANT value="Y" datatype="VARCHAR" size="1" />
</DIExpression>
<DIExpression isString="true" expr="Case_NEW.MEASURETYPE_NAME" >
<COLUMN_REFERENCE  qualifier1="Case_NEW" column="MEASURETYPE_NAME" />
</DIExpression>
<DIExpression isString="true" expr="greatest((5 + gen_row_num()), key_generation(DW_DS.DW_ALIAS.MEASURETYPE_DIM, 'PK_MEASURETYPE_ID', 1) )" >
<FUNCTION_CALL name="greatest"  type="DI" >
<ADD>
<CONSTANT value="5" datatype="INT" />
<FUNCTION_CALL name="gen_row_num"  type="DI" />
</ADD>
<FUNCTION_CALL name="key_generation"  type="DI" tableDatastore="DW_DS" tableOwner="DW_ALIAS" tableName="MEASURETYPE_DIM" >
<CONSTANT value="PK_MEASURETYPE_ID" datatype="VARCHAR" size="17" />
<CONSTANT value="1" datatype="INT" />
</FUNCTION_CALL>
</FUNCTION_CALL>
</DIExpression>
</DIProjection>
<DIFrom>
<DITableSpec name="Case_NEW" />
</DIFrom>
</DISelect>
<DIAttributes>
<DIAttribute name="distinct_run_as_separate_process" value="no"/>
<DIAttribute name="group_by_run_as_separate_process" value="no"/>
<DIAttribute name="join_run_as_separate_process" value="no"/>
<DIAttribute name="order_by_run_as_separate_process" value="no"/>
<DIAttribute name="run_as_separate_process" value="no"/>
</DIAttributes>
</DIQuery>

<DITransformCall typeId="111" name="Table_Comparison" >
<DIInputView name="QRY_Update"  />
<DISchema name="MEASURETYPE_DIM" >
</DISchema>
<DIAttributes>
<DIAttribute name="cache_comparison_table" value="yes"/>
<DIAttribute name="compare_column1" value="MEASURETYPE_NAME"/>
<DIAttribute name="compare_column2" value="DESCRIPTION"/>
<DIAttribute name="database_datastore" value="DW_DS"/>
<DIAttribute name="detect_all_dup_deletes" value="no"/>
<DIAttribute name="detect_delete" value="no"/>
<DIAttribute name="primary_key_column1" value="MD_DURABLE_KEY"/>
<DIAttribute name="run_as_separate_process" value="no"/>
<DIAttribute name="source_is_sorted" value="no"/>
<DIAttribute name="table_name" value="MEASURETYPE_DIM"/>
<DIAttribute name="table_owner" value="DW_ALIAS"/>
<DIAttribute name="update_cache" value="no"/>
</DIAttributes>
</DITransformCall>
<DITransformCall typeId="111" name="Map_Operation" >
<DIInputView name="MEASURETYPE_DIM"  />
<DISchema name="Map_Operation" >
</DISchema>
<DIAttributes>
<DIAttribute name="delete" value="discard"/>
<DIAttribute name="insert" value="discard"/>
<DIAttribute name="normal" value="discard"/>
<DIAttribute name="update" value="normal"/>
</DIAttributes>
</DITransformCall>
<DIQuery typeId="122"  >
<DIUIOptions>
<DIAttribute name="ui_acta_from_schema_0" value="Map_Operation"/>
</DIUIOptions>
<DISchema name="Query" >
<DIElement name="MD_BATCH_ID" datatype="DECIMAL" precision="19" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="$G_BATCH_ID "/>
</DIAttributes>
</DIElement>
<DIElement name="MD_PROCESS_ID" datatype="DECIMAL" precision="19" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="$G_PROCESS_ID "/>
</DIAttributes>
</DIElement>
<DIElement name="DESCRIPTION" datatype="VARCHAR" size="1024" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="Map_Operation.DESCRIPTION"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_ACTIVESTATUSIND" datatype="VARCHAR" size="1" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="Map_Operation.MD_ACTIVESTATUSIND"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_CREATEDDATE" datatype="DATETIME" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="Map_Operation.MD_CREATEDDATE"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_DELETEDDATE" datatype="DATETIME" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="Map_Operation.MD_DELETEDDATE"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_DURABLE_KEY" datatype="DECIMAL" precision="18" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="Map_Operation.MD_DURABLE_KEY"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_LASTMODDATE" datatype="DATETIME" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="$G_MODDATE_LOC "/>
</DIAttributes>
</DIElement>
<DIElement name="MD_TRANSENDDATE" datatype="DATETIME" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="Map_Operation.MD_TRANSENDDATE"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_TRANSLASTIND" datatype="VARCHAR" size="1" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="Map_Operation.MD_TRANSLASTIND"/>
</DIAttributes>
</DIElement>
<DIElement name="MEASURETYPE_NAME" datatype="VARCHAR" size="60" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="Map_Operation.MEASURETYPE_NAME"/>
</DIAttributes>
</DIElement>
<DIElement name="PK_MEASURETYPE_ID" datatype="DECIMAL" precision="18" scale="0" key="true" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="Map_Operation.PK_MEASURETYPE_ID"/>
</DIAttributes>
</DIElement>
</DISchema>
<DISelect>
<DIProjection>
<DIExpression isString="true" expr="$G_BATCH_ID" >
<VARIABLE_REFERENCE name="$G_BATCH_ID" />
</DIExpression>
<DIExpression isString="true" expr="$G_PROCESS_ID" >
<VARIABLE_REFERENCE name="$G_PROCESS_ID" />
</DIExpression>
<DIExpression isString="true" expr="Map_Operation.DESCRIPTION" >
<COLUMN_REFERENCE  qualifier1="Map_Operation" column="DESCRIPTION" />
</DIExpression>
<DIExpression isString="true" expr="Map_Operation.MD_ACTIVESTATUSIND" >
<COLUMN_REFERENCE  qualifier1="Map_Operation" column="MD_ACTIVESTATUSIND" />
</DIExpression>
<DIExpression isString="true" expr="Map_Operation.MD_CREATEDDATE" >
<COLUMN_REFERENCE  qualifier1="Map_Operation" column="MD_CREATEDDATE" />
</DIExpression>
<DIExpression isString="true" expr="Map_Operation.MD_DELETEDDATE" >
<COLUMN_REFERENCE  qualifier1="Map_Operation" column="MD_DELETEDDATE" />
</DIExpression>
<DIExpression isString="true" expr="Map_Operation.MD_DURABLE_KEY" >
<COLUMN_REFERENCE  qualifier1="Map_Operation" column="MD_DURABLE_KEY" />
</DIExpression>
<DIExpression isString="true" expr="$G_MODDATE_LOC" >
<VARIABLE_REFERENCE name="$G_MODDATE_LOC" />
</DIExpression>
<DIExpression isString="true" expr="Map_Operation.MD_TRANSENDDATE" >
<COLUMN_REFERENCE  qualifier1="Map_Operation" column="MD_TRANSENDDATE" />
</DIExpression>
<DIExpression isString="true" expr="Map_Operation.MD_TRANSLASTIND" >
<COLUMN_REFERENCE  qualifier1="Map_Operation" column="MD_TRANSLASTIND" />
</DIExpression>
<DIExpression isString="true" expr="Map_Operation.MEASURETYPE_NAME" >
<COLUMN_REFERENCE  qualifier1="Map_Operation" column="MEASURETYPE_NAME" />
</DIExpression>
<DIExpression isString="true" expr="Map_Operation.PK_MEASURETYPE_ID" >
<COLUMN_REFERENCE  qualifier1="Map_Operation" column="PK_MEASURETYPE_ID" />
</DIExpression>
</DIProjection>
<DIFrom>
<DITableSpec name="Map_Operation" />
</DIFrom>
</DISelect>
<DIAttributes>
<DIAttribute name="distinct_run_as_separate_process" value="no"/>
<DIAttribute name="group_by_run_as_separate_process" value="no"/>
<DIAttribute name="join_run_as_separate_process" value="no"/>
<DIAttribute name="order_by_run_as_separate_process" value="no"/>
<DIAttribute name="run_as_separate_process" value="no"/>
</DIAttributes>
</DIQuery>

<DIDatabaseTableSource typeId="22" datastoreName="DWSTAGING_DS" ownerName="DWSTAGING_ALIAS" tableName="MEASURETYPE_MSC" >
<DIOutputView name="MEASURETYPE_MSC"  />
<DIAttributes>
<DIAttribute name="array_fetch_size" value="1000"/>
<DIAttribute name="cache" value="yes"/>
<DIAttribute name="connection_port" value="no"/>
<DIAttribute name="enable_partitioning" value="no"/>
<DIAttribute name="name" value="DWSTAGING_DS"/>
<DIAttribute name="package_size" value="0"/>
<DIAttribute name="reader_is_DB2CDC_table" value="no"/>
<DIAttribute name="reader_overflow_file" value="overflow_file"/>
<DIAttribute name="reader_template_table" value="no"/>
<DIAttribute name="reader_use_overflow_file" value="no"/>
<DIAttribute name="reader_use_trex_transaction" value="no"/>
<DIAttribute name="table_weight" value="0"/>
</DIAttributes>
</DIDatabaseTableSource>


<!-- GUID is optional -->
<DITransformCall typeId="210" name="Case_Operation"  >
<DIUIOptions>
<DIAttribute name="Case_NEW" value="MEASURETYPE_MSC.MD_FLAG=$G_FLAG_NEW &#xD;&#xA;"/>
<DIAttribute name="Case_UPDATE" value="MEASURETYPE_MSC.MD_FLAG=$G_FLAG_UPDATE"/>
<DIAttribute name="ui_acta_from_schema_0" value="MEASURETYPE_MSC"/>
<DIAttribute name="ui_display_name" value="Case"/>
</DIUIOptions>
<DIInputView name="MEASURETYPE_MSC" />
<DISchema name="Case" >
</DISchema>
<DICase>
<DISwitch label="NEW" outputView="Case_NEW" isDefault="false">
<DIExpression isString="true" expr="(MEASURETYPE_MSC.MD_FLAG = $G_FLAG_NEW)" >
<LOGICAL_OP op="EQ">
<COLUMN_REFERENCE  qualifier1="MEASURETYPE_MSC" column="MD_FLAG" />
<VARIABLE_REFERENCE name="$G_FLAG_NEW" />
</LOGICAL_OP>
</DIExpression>
</DISwitch>
<DISwitch label="UPDATE" outputView="Case_UPDATE" isDefault="false">
<DIExpression isString="true" expr="(MEASURETYPE_MSC.MD_FLAG = $G_FLAG_UPDATE)" >
<LOGICAL_OP op="EQ">
<COLUMN_REFERENCE  qualifier1="MEASURETYPE_MSC" column="MD_FLAG" />
<VARIABLE_REFERENCE name="$G_FLAG_UPDATE" />
</LOGICAL_OP>
</DIExpression>
</DISwitch>
</DICase>
<DIAttributes>
<DIAttribute name="Mutually_Exclusive" value="yes"/>
<DIAttribute name="Preserve_Expression_Order" value="no"/>
</DIAttributes>
</DITransformCall>
</DITransforms>
<DIAttributes>
<DIAttribute name="Cache_type" value="pageable_cache"/>
<DIAttribute name="Parallelism_degree" value="0"/>
<DIAttribute name="allows_both_input_and_output" value="yes"/>
<DIAttribute name="run_once" value="no"/>
<DIAttribute name="use_dataflow_links" value="no"/>
<DIAttribute name="use_datastore_links" value="yes"/>
<DIAttribute name="validation_xform_exists" value="no"/>
<DIAttribute name="validation_xform_stats" value="no"/>
</DIAttributes>
</DIDataflow>
<DIWorkflow name="EXTERN_PROGRAMS_XFR_DIM_WF" typeId="2" >
<DIVariables>
<DIElement paramType="LOCAL" name="$L_IDENTIFIER" datatype="VARCHAR" size="100" >
</DIElement>
</DIVariables>
<DISteps>
</DISteps>
<DIAttributes>
<DIAttribute name="run_once" value="no"/>
<DIAttribute name="unit_of_recovery" value="no"/>
</DIAttributes>
</DIWorkflow>
<DIWorkflow name="STATUS_XFR_DIM_WF" typeId="2" >
<DIUIOptions>
<DIAnnotation name="ANNOTATION_0"><DIAttribute name="ObjectDesc" value="This workflow is responsible for loading dimension records into target staging and processing the flagged records into the appropriate load-ready XFR tables  (XFRU for slowly changing dimension type 1), (XFRN for new dimension records). "/>
</DIAnnotation></DIUIOptions>
<DIProperties>
<DIAttribute name="Description" value="The workflow {TARGET DIMENSION NAME}_XFR_WF is the workflow responsible for loading dimension tables in target staging.  The workflow will be composed of the following objects:&#xA;•&#x9;{TARGET DIMENSION NAME}_XFR_TRY – The beginning of the TRY/CATCH block in Data Services&#xA;•&#x9;{TARGET DIMENSION NAME}_XFR_START_SC – The script that calls the custom function that initiates the metadata tracking for the workflow. The script also calls the custom function that creates pseudo surrogate key record. &#xA;•&#x9;{TARGET DIMENSION NAME}_XFR_DF – The dataflow that based on the incoming Multiple Source Consolidation MSC table, checks the value of the MD_FLAG field for each record, which will specify if the record is of type insert, update or delete.&#xA;•&#x9;{TARGET DIMENSION NAME}_XFR_END_SC – The script that calls the custom function that closes the metadata for the workflow.&#xA;•&#x9;{TARGET DIMENSION NAME}_XFR_CATCH – The end of the TRY/CATCH block.  It contains the script that calls the custom function which writes metadata if there is a failure."/>
</DIProperties>
<DIVariables>
<DIElement paramType="LOCAL" name="$L_IDENTIFIER" datatype="VARCHAR" size="100" >
</DIElement>
</DIVariables>
<DISteps>
<DITryStep typeId="13" >
<DIUIOptions>
<DIAttribute name="ObjectDesc" value="the Try of the Try / Catch Block"/>
<DIAttribute name="ui_display_name" value="STATUS_XFR_DIM_TRY"/>
</DIUIOptions>
<DISteps>
<DIScript>
<DIUIOptions>
<DIAttribute name="ObjectDesc" value="The workflow script object which contains the script to call the custom start workflow function.  This script opens the metadata records that are part of this process"/>
<DIAttribute name="ui_display_name" value="STATUS_XFR_DIM_START_SC"/>
<DIAttribute name="ui_script_text" value="# CALL FUNCTION TO TRACK START OF WORKFLOW&#xA;$L_IDENTIFIER = workflow_name();&#xA;ABC_STARTWF_FN($L_IDENTIFIER, $G_PROCESS_ID);&#xA;&#xA;"/>
</DIUIOptions>
<DIAssignmentStep typeId="12" variable="$L_IDENTIFIER" >
<DIExpression isString="true" expr="workflow_name()" >
<FUNCTION_CALL name="workflow_name"  type="DI" />
</DIExpression>
</DIAssignmentStep>
<DIFunctionCallStep typeId="23" >
<DIExpression isString="true" expr="abc_startwf_fn($L_IDENTIFIER, $G_PROCESS_ID)" >
<FUNCTION_CALL name="abc_startwf_fn"  type="DI" >
<VARIABLE_REFERENCE name="$L_IDENTIFIER" />
<VARIABLE_REFERENCE name="$G_PROCESS_ID" />
</FUNCTION_CALL>
</DIExpression>
</DIFunctionCallStep>
</DIScript>
<DICallStep typeId="1"  calledObjectType="Dataflow" name="STATUS_XFR_DIM_DF" >
</DICallStep>
<DIScript>
<DIUIOptions>
<DIAttribute name="ObjectDesc" value="The workflow script object that calls the custom end workflow function.  This script closes the metadata records that are part of this process."/>
<DIAttribute name="ui_display_name" value="STATUS_XFR_DIM_END_SC"/>
<DIAttribute name="ui_script_text" value="# CALL FUNCTION TO TRACK END OF WORKFLOW&#xA;ABC_ENDWF_FN($L_IDENTIFIER, $G_PROCESS_ID);&#xA;"/>
</DIUIOptions>
<DIFunctionCallStep typeId="23" >
<DIExpression isString="true" expr="abc_endwf_fn($L_IDENTIFIER, $G_PROCESS_ID)" >
<FUNCTION_CALL name="abc_endwf_fn"  type="DI" >
<VARIABLE_REFERENCE name="$L_IDENTIFIER" />
<VARIABLE_REFERENCE name="$G_PROCESS_ID" />
</FUNCTION_CALL>
</DIExpression>
</DIFunctionCallStep>
</DIScript>
</DISteps>
<DICatch typeId="20" errorCode="210101" >
<DIUIOptions>
<DIAttribute name="ObjectDesc" value="The workflow catch object is the end of the TRY/CATCH block in BO DS.  This catch block will contain the script object that calls a custom fail workflow function used to write the metadata for failed jobs."/>
<DIAttribute name="ui_display_name" value="STATUS_XFR_DIM_CATCH"/>
</DIUIOptions>
<DISteps>
<DIScript>
<DIUIOptions>
<DIAttribute name="ui_display_name" value="STATUS_XFR_DIM_FAIL_SC"/>
<DIAttribute name="ui_script_text" value="# CALL FUNCTION TO TRACK FAIL OF WORKFLOW&#xA;ABC_FAILWF_FN(workflow_name(), $G_PROCESS_ID, 'Error: \[' || error_number() || '\] ' || error_message());"/>
</DIUIOptions>
<DIFunctionCallStep typeId="23" >
<DIExpression isString="true" expr="abc_failwf_fn(workflow_name(), $G_PROCESS_ID, ((('Error: \\[' || error_number()) || '\\] ') || error_message()))" >
<FUNCTION_CALL name="abc_failwf_fn"  type="DI" >
<FUNCTION_CALL name="workflow_name"  type="DI" />
<VARIABLE_REFERENCE name="$G_PROCESS_ID" />
<CONCAT>
<CONCAT>
<CONCAT>
<CONSTANT value="Error: \[" datatype="VARCHAR" size="9" />
<FUNCTION_CALL name="error_number"  type="DI" />
</CONCAT>
<CONSTANT value="\] " datatype="VARCHAR" size="3" />
</CONCAT>
<FUNCTION_CALL name="error_message"  type="DI" />
</CONCAT>
</FUNCTION_CALL>
</DIExpression>
</DIFunctionCallStep>
</DIScript>
</DISteps>
</DICatch>
</DITryStep>
</DISteps>
<DIAttributes>
<DIAttribute name="run_once" value="no"/>
<DIAttribute name="unit_of_recovery" value="no"/>
</DIAttributes>
</DIWorkflow>
<DIDataflow name="STATUS_XFR_DIM_DF" typeId="1" >
<DIUIOptions>
<DIAnnotation name="ANNOTATION_0"><DIAttribute name="ObjectDesc" value="Based on the incoming MSC table, check the value of the MD_FLAG field for each record, which will specify if the record is of type insert, update or delete. The MD_* fields are populated as appropriate in each QRY transform and pushed to the appropriate load ready XFR table."/>
</DIAnnotation></DIUIOptions>
<DIProperties>
<DIAttribute name="Description" value="The dataflow that based on the incoming Multiple Source Consolidation MSC table, checks the value of the MD_FLAG field for each record, which will specify if the record is of type insert, update or . Then process and load the appropriate XFR target staging table."/>
</DIProperties>
<DITransforms>
<DIDatabaseTableTarget typeID="11" bulkLoader="false" datastoreName="DWSTAGING_DS" ownerName="DWSTAGING_ALIAS" tableName="STATUS_DIM_XFRN" >
<DIInputView name="QRY_PK_STATUS_ID"  />
<DIAttributes>
<DIAttribute name="LDRLiveLoad" value="no"/>
<DIAttribute name="Table_Type" value="TABLE"/>
<DIAttribute name="connection_port" value="no"/>
<DIAttribute name="ldr_configuration_enabled" value="yes"/>
<DIAttribute name="ldr_configurations" hasNestedXMLTree ="true">

<LDRConfigurations>
<LDRConfiguration database_type="Microsoft_SQL_Server" database_version="Microsoft SQL Server 2005">
<auto_correct_using_merge>yes</auto_correct_using_merge>
<bulk_ldr_all_rows></bulk_ldr_all_rows>
<bulk_ldr_max_errors></bulk_ldr_max_errors>
<bulk_ldr_rows_per_commit>1000</bulk_ldr_rows_per_commit>
<enable_partitioning>no</enable_partitioning>
<ignore_column_case>yes</ignore_column_case>
<ignore_columns_null>no</ignore_columns_null>
<ignore_columns_value></ignore_columns_value>
<loader_auto_correct>no</loader_auto_correct>
<loader_bulk_load>1</loader_bulk_load>
<loader_compare_column>compare_by_name</loader_compare_column>
<loader_delete_map></loader_delete_map>
<loader_drop_and_create_table>yes</loader_drop_and_create_table>
<loader_insert_map></loader_insert_map>
<loader_load_choice>append</loader_load_choice>
<loader_num_parallel_loaders>1</loader_num_parallel_loaders>
<loader_overflow_file>overflow_file</loader_overflow_file>
<loader_post_load1></loader_post_load1>
<loader_pre_load1></loader_pre_load1>
<loader_quote_names>0</loader_quote_names>
<loader_transactional>no</loader_transactional>
<loader_transactional_order>0</loader_transactional_order>
<loader_update_key_columns>no</loader_update_key_columns>
<loader_update_map></loader_update_map>
<loader_use_user_defined_keys>no</loader_use_user_defined_keys>
<loader_xact_size>1000</loader_xact_size>
<mssql_bulk_ldr_mode>truncate</mssql_bulk_ldr_mode>
<mssql_bulk_ldr_packet_size>4</mssql_bulk_ldr_packet_size>
<overflow_file_format>write_data</overflow_file_format>
<overriding_substitution_parameter_for_tablename></overriding_substitution_parameter_for_tablename>
<use_overflow_file>no</use_overflow_file>
<use_unicode_varchar>no</use_unicode_varchar>
<sql_text></sql_text>
</LDRConfiguration>
</LDRConfigurations>
</DIAttribute>
<DIAttribute name="loader_template_table" value="no"/>
<DIAttribute name="name" value="DWSTAGING_DS"/>
<DIAttribute name="use_unicode_varchar" value="no"/>
</DIAttributes>
</DIDatabaseTableTarget>

<DIQuery typeId="122"  >
<DIUIOptions>
<DIAttribute name="ui_acta_from_schema_0" value="Case_1_UPDATES"/>
<DIAttribute name="ui_display_name" value="QRY_Update"/>
</DIUIOptions>
<DISchema name="QRY_Update" >
<DIElement name="MD_BATCH_ID" datatype="DECIMAL" precision="19" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="$G_BATCH_ID&#xA; &#xA;&#xD;&#xA; &#xD;&#xA;"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_PROCESS_ID" datatype="DECIMAL" precision="19" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="$G_PROCESS_ID &#xA; &#xA;&#xD;&#xA; &#xD;&#xA;"/>
</DIAttributes>
</DIElement>
<DIElement name="STATUS_NAME" datatype="VARCHAR" size="60" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="Case_1_UPDATES.STATUS_NAME&#xD;&#xA; &#xD;&#xA;"/>
</DIAttributes>
</DIElement>
<DIElement name="DESCRIPTION" datatype="VARCHAR" size="1024" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="Case_1_UPDATES.DESCRIPTION&#xD;&#xA; &#xD;&#xA;"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_DURABLE_KEY" datatype="DECIMAL" precision="18" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="Case_1_UPDATES.MD_ENTERPRISE_KEY&#xD;&#xA; &#xD;&#xA;"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_LASTMODDATE" datatype="DATETIME" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="$G_MODDATE_LOC &#xA; &#xA;&#xD;&#xA; &#xD;&#xA;"/>
</DIAttributes>
</DIElement>
<DIElement name="CODE" datatype="DOUBLE" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="Case_1_UPDATES.CODE&#xD;&#xA; &#xD;&#xA;"/>
</DIAttributes>
</DIElement>
</DISchema>
<DISelect>
<DIProjection>
<DIExpression isString="true" expr="$G_BATCH_ID" >
<VARIABLE_REFERENCE name="$G_BATCH_ID" />
</DIExpression>
<DIExpression isString="true" expr="$G_PROCESS_ID" >
<VARIABLE_REFERENCE name="$G_PROCESS_ID" />
</DIExpression>
<DIExpression isString="true" expr="Case_1_UPDATES.STATUS_NAME" >
<COLUMN_REFERENCE  qualifier1="Case_1_UPDATES" column="STATUS_NAME" />
</DIExpression>
<DIExpression isString="true" expr="Case_1_UPDATES.DESCRIPTION" >
<COLUMN_REFERENCE  qualifier1="Case_1_UPDATES" column="DESCRIPTION" />
</DIExpression>
<DIExpression isString="true" expr="Case_1_UPDATES.MD_ENTERPRISE_KEY" >
<COLUMN_REFERENCE  qualifier1="Case_1_UPDATES" column="MD_ENTERPRISE_KEY" />
</DIExpression>
<DIExpression isString="true" expr="$G_MODDATE_LOC" >
<VARIABLE_REFERENCE name="$G_MODDATE_LOC" />
</DIExpression>
<DIExpression isString="true" expr="Case_1_UPDATES.CODE" >
<COLUMN_REFERENCE  qualifier1="Case_1_UPDATES" column="CODE" />
</DIExpression>
</DIProjection>
<DIFrom>
<DITableSpec name="Case_1_UPDATES" />
</DIFrom>
<DIOrderBys>
<DIOrderBy direction="ASC">
<DIExpression isString="true" expr="Case_1_UPDATES.STATUS_NAME" >
<COLUMN_REFERENCE  qualifier1="Case_1_UPDATES" column="STATUS_NAME" />
</DIExpression>
</DIOrderBy>
</DIOrderBys>
</DISelect>
<DIAttributes>
<DIAttribute name="distinct_run_as_separate_process" value="no"/>
<DIAttribute name="group_by_run_as_separate_process" value="no"/>
<DIAttribute name="join_run_as_separate_process" value="no"/>
<DIAttribute name="order_by_run_as_separate_process" value="no"/>
<DIAttribute name="run_as_separate_process" value="no"/>
</DIAttributes>
</DIQuery>

<DIDatabaseTableTarget typeID="11" bulkLoader="false" datastoreName="DWSTAGING_DS" ownerName="DWSTAGING_ALIAS" tableName="STATUS_DIM_XFRU" >
<DIInputView name="Query"  />
<DIAttributes>
<DIAttribute name="LDRLiveLoad" value="no"/>
<DIAttribute name="Table_Type" value="TABLE"/>
<DIAttribute name="connection_port" value="no"/>
<DIAttribute name="ldr_configuration_enabled" value="yes"/>
<DIAttribute name="ldr_configurations" hasNestedXMLTree ="true">

<LDRConfigurations>
<LDRConfiguration database_type="Microsoft_SQL_Server" database_version="Microsoft SQL Server 2005">
<auto_correct_using_merge>yes</auto_correct_using_merge>
<bulk_ldr_all_rows></bulk_ldr_all_rows>
<bulk_ldr_max_errors></bulk_ldr_max_errors>
<bulk_ldr_rows_per_commit>1000</bulk_ldr_rows_per_commit>
<enable_partitioning>no</enable_partitioning>
<ignore_column_case>yes</ignore_column_case>
<ignore_columns_null>no</ignore_columns_null>
<ignore_columns_value></ignore_columns_value>
<loader_auto_correct>no</loader_auto_correct>
<loader_bulk_load>1</loader_bulk_load>
<loader_compare_column>compare_by_name</loader_compare_column>
<loader_delete_map></loader_delete_map>
<loader_drop_and_create_table>no</loader_drop_and_create_table>
<loader_insert_map></loader_insert_map>
<loader_load_choice>append</loader_load_choice>
<loader_num_parallel_loaders>1</loader_num_parallel_loaders>
<loader_overflow_file>overflow_file</loader_overflow_file>
<loader_post_load1></loader_post_load1>
<loader_pre_load1></loader_pre_load1>
<loader_quote_names>0</loader_quote_names>
<loader_transactional>no</loader_transactional>
<loader_transactional_order>0</loader_transactional_order>
<loader_update_key_columns>no</loader_update_key_columns>
<loader_update_map></loader_update_map>
<loader_use_user_defined_keys>no</loader_use_user_defined_keys>
<loader_xact_size>1000</loader_xact_size>
<mssql_bulk_ldr_mode>truncate</mssql_bulk_ldr_mode>
<mssql_bulk_ldr_packet_size>4</mssql_bulk_ldr_packet_size>
<overflow_file_format>write_data</overflow_file_format>
<overriding_substitution_parameter_for_tablename></overriding_substitution_parameter_for_tablename>
<use_overflow_file>no</use_overflow_file>
<use_unicode_varchar>no</use_unicode_varchar>
<sql_text></sql_text>
</LDRConfiguration>
</LDRConfigurations>
</DIAttribute>
<DIAttribute name="loader_template_table" value="no"/>
<DIAttribute name="name" value="DWSTAGING_DS"/>
<DIAttribute name="use_unicode_varchar" value="no"/>
</DIAttributes>
</DIDatabaseTableTarget>

<DIQuery typeId="122"  >
<DIUIOptions>
<DIAttribute name="ui_acta_from_schema_0" value="Case_1_NEW"/>
<DIAttribute name="ui_display_name" value="QRY_PK_STATUS_ID"/>
</DIUIOptions>
<DISchema name="QRY_PK_STATUS_ID" >
<DIElement name="MD_BATCH_ID" datatype="DECIMAL" precision="19" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="$G_BATCH_ID&#xA; &#xA;&#xD;&#xA; &#xD;&#xA;"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_PROCESS_ID" datatype="DECIMAL" precision="19" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="$G_PROCESS_ID&#xA; &#xA;&#xD;&#xA; &#xD;&#xA;"/>
</DIAttributes>
</DIElement>
<DIElement name="CODE" datatype="DOUBLE" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="Case_1_NEW.CODE&#xD;&#xA; &#xD;&#xA;"/>
</DIAttributes>
</DIElement>
<DIElement name="DESCRIPTION" datatype="VARCHAR" size="1024" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="Case_1_NEW.DESCRIPTION&#xA; &#xA;&#xD;&#xA; &#xD;&#xA;"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_ACTIVESTATUSIND" datatype="VARCHAR" size="1" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="'Y'&#xA; &#xA;&#xD;&#xA; &#xD;&#xA;"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_CREATEDDATE" datatype="DATETIME" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="$G_MODDATE_LOC &#xA; &#xA;&#xD;&#xA; &#xD;&#xA;"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_DELETEDDATE" datatype="DATETIME" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="NULL&#xA; &#xA;&#xD;&#xA; &#xD;&#xA;"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_DURABLE_KEY" datatype="DECIMAL" precision="18" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="Case_1_NEW.MD_ENTERPRISE_KEY&#xD;&#xA; &#xD;&#xA;"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_LASTMODDATE" datatype="DATETIME" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="NULL&#xA; &#xA;&#xD;&#xA; &#xD;&#xA;"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_TRANSENDDATE" datatype="DATETIME" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="NULL&#xA; &#xA;&#xD;&#xA; &#xD;&#xA;"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_TRANSLASTIND" datatype="VARCHAR" size="1" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="'Y'&#xA; &#xA;&#xD;&#xA; &#xD;&#xA;"/>
</DIAttributes>
</DIElement>
<DIElement name="PK_STATUS_ID" datatype="DECIMAL" precision="18" scale="0" key="true" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="greatest(5+gen_row_num(),key_generation('DW_DS.DW_ALIAS.STATUS_DIM', 'PK_STATUS_ID',1))&#xA; &#xA;&#xD;&#xA; &#xD;&#xA;"/>
</DIAttributes>
</DIElement>
<DIElement name="STATUS_NAME" datatype="VARCHAR" size="60" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="Case_1_NEW.STATUS_NAME&#xA; &#xA;&#xD;&#xA; &#xD;&#xA;"/>
</DIAttributes>
</DIElement>
</DISchema>
<DISelect>
<DIProjection>
<DIExpression isString="true" expr="$G_BATCH_ID" >
<VARIABLE_REFERENCE name="$G_BATCH_ID" />
</DIExpression>
<DIExpression isString="true" expr="$G_PROCESS_ID" >
<VARIABLE_REFERENCE name="$G_PROCESS_ID" />
</DIExpression>
<DIExpression isString="true" expr="Case_1_NEW.CODE" >
<COLUMN_REFERENCE  qualifier1="Case_1_NEW" column="CODE" />
</DIExpression>
<DIExpression isString="true" expr="Case_1_NEW.DESCRIPTION" >
<COLUMN_REFERENCE  qualifier1="Case_1_NEW" column="DESCRIPTION" />
</DIExpression>
<DIExpression isString="true" expr="'Y'" >
<CONSTANT value="Y" datatype="VARCHAR" size="1" />
</DIExpression>
<DIExpression isString="true" expr="$G_MODDATE_LOC" >
<VARIABLE_REFERENCE name="$G_MODDATE_LOC" />
</DIExpression>
<DIExpression isString="true" expr=" NULL " >
<CONSTANT_NULL /></DIExpression>
<DIExpression isString="true" expr="Case_1_NEW.MD_ENTERPRISE_KEY" >
<COLUMN_REFERENCE  qualifier1="Case_1_NEW" column="MD_ENTERPRISE_KEY" />
</DIExpression>
<DIExpression isString="true" expr=" NULL " >
<CONSTANT_NULL /></DIExpression>
<DIExpression isString="true" expr=" NULL " >
<CONSTANT_NULL /></DIExpression>
<DIExpression isString="true" expr="'Y'" >
<CONSTANT value="Y" datatype="VARCHAR" size="1" />
</DIExpression>
<DIExpression isString="true" expr="greatest((5 + gen_row_num()), key_generation(DW_DS.DW_ALIAS.STATUS_DIM, 'PK_STATUS_ID', 1) )" >
<FUNCTION_CALL name="greatest"  type="DI" >
<ADD>
<CONSTANT value="5" datatype="INT" />
<FUNCTION_CALL name="gen_row_num"  type="DI" />
</ADD>
<FUNCTION_CALL name="key_generation"  type="DI" tableDatastore="DW_DS" tableOwner="DW_ALIAS" tableName="STATUS_DIM" >
<CONSTANT value="PK_STATUS_ID" datatype="VARCHAR" size="12" />
<CONSTANT value="1" datatype="INT" />
</FUNCTION_CALL>
</FUNCTION_CALL>
</DIExpression>
<DIExpression isString="true" expr="Case_1_NEW.STATUS_NAME" >
<COLUMN_REFERENCE  qualifier1="Case_1_NEW" column="STATUS_NAME" />
</DIExpression>
</DIProjection>
<DIFrom>
<DITableSpec name="Case_1_NEW" />
</DIFrom>
</DISelect>
<DIAttributes>
<DIAttribute name="distinct_run_as_separate_process" value="no"/>
<DIAttribute name="group_by_run_as_separate_process" value="no"/>
<DIAttribute name="join_run_as_separate_process" value="no"/>
<DIAttribute name="order_by_run_as_separate_process" value="no"/>
<DIAttribute name="run_as_separate_process" value="no"/>
</DIAttributes>
</DIQuery>

<DITransformCall typeId="111" name="Table_Comparison" >
<DIInputView name="QRY_Update"  />
<DISchema name="STATUS_DIM" >
</DISchema>
<DIAttributes>
<DIAttribute name="cache_comparison_table" value="yes"/>
<DIAttribute name="compare_column1" value="STATUS_NAME"/>
<DIAttribute name="compare_column2" value="CODE"/>
<DIAttribute name="compare_column3" value="DESCRIPTION"/>
<DIAttribute name="database_datastore" value="DW_DS"/>
<DIAttribute name="detect_all_dup_deletes" value="no"/>
<DIAttribute name="detect_delete" value="no"/>
<DIAttribute name="primary_key_column1" value="MD_DURABLE_KEY"/>
<DIAttribute name="run_as_separate_process" value="no"/>
<DIAttribute name="source_is_sorted" value="no"/>
<DIAttribute name="table_name" value="STATUS_DIM"/>
<DIAttribute name="table_owner" value="DW_ALIAS"/>
<DIAttribute name="update_cache" value="no"/>
</DIAttributes>
</DITransformCall>
<DITransformCall typeId="111" name="Map_Operation" >
<DIInputView name="STATUS_DIM"  />
<DISchema name="Map_Operation" >
</DISchema>
<DIAttributes>
<DIAttribute name="delete" value="discard"/>
<DIAttribute name="insert" value="discard"/>
<DIAttribute name="normal" value="discard"/>
<DIAttribute name="update" value="normal"/>
</DIAttributes>
</DITransformCall>
<DIQuery typeId="122"  >
<DIUIOptions>
<DIAttribute name="ui_acta_from_schema_0" value="Map_Operation"/>
</DIUIOptions>
<DISchema name="Query" >
<DIElement name="MD_BATCH_ID" datatype="DECIMAL" precision="19" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="$G_BATCH_ID "/>
</DIAttributes>
</DIElement>
<DIElement name="MD_PROCESS_ID" datatype="DECIMAL" precision="19" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="$G_PROCESS_ID "/>
</DIAttributes>
</DIElement>
<DIElement name="CODE" datatype="DOUBLE" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="Map_Operation.CODE"/>
</DIAttributes>
</DIElement>
<DIElement name="DESCRIPTION" datatype="VARCHAR" size="1024" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="Map_Operation.DESCRIPTION"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_ACTIVESTATUSIND" datatype="VARCHAR" size="1" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="Map_Operation.MD_ACTIVESTATUSIND"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_CREATEDDATE" datatype="DATETIME" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="Map_Operation.MD_CREATEDDATE"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_DELETEDDATE" datatype="DATETIME" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="Map_Operation.MD_DELETEDDATE"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_DURABLE_KEY" datatype="DECIMAL" precision="18" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="Map_Operation.MD_DURABLE_KEY"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_LASTMODDATE" datatype="DATETIME" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="$G_MODDATE_LOC "/>
</DIAttributes>
</DIElement>
<DIElement name="MD_TRANSENDDATE" datatype="DATETIME" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="Map_Operation.MD_TRANSENDDATE"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_TRANSLASTIND" datatype="VARCHAR" size="1" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="Map_Operation.MD_TRANSLASTIND"/>
</DIAttributes>
</DIElement>
<DIElement name="PK_STATUS_ID" datatype="DECIMAL" precision="18" scale="0" key="true" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="Map_Operation.PK_STATUS_ID"/>
</DIAttributes>
</DIElement>
<DIElement name="STATUS_NAME" datatype="VARCHAR" size="60" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="Map_Operation.STATUS_NAME"/>
</DIAttributes>
</DIElement>
</DISchema>
<DISelect>
<DIProjection>
<DIExpression isString="true" expr="$G_BATCH_ID" >
<VARIABLE_REFERENCE name="$G_BATCH_ID" />
</DIExpression>
<DIExpression isString="true" expr="$G_PROCESS_ID" >
<VARIABLE_REFERENCE name="$G_PROCESS_ID" />
</DIExpression>
<DIExpression isString="true" expr="Map_Operation.CODE" >
<COLUMN_REFERENCE  qualifier1="Map_Operation" column="CODE" />
</DIExpression>
<DIExpression isString="true" expr="Map_Operation.DESCRIPTION" >
<COLUMN_REFERENCE  qualifier1="Map_Operation" column="DESCRIPTION" />
</DIExpression>
<DIExpression isString="true" expr="Map_Operation.MD_ACTIVESTATUSIND" >
<COLUMN_REFERENCE  qualifier1="Map_Operation" column="MD_ACTIVESTATUSIND" />
</DIExpression>
<DIExpression isString="true" expr="Map_Operation.MD_CREATEDDATE" >
<COLUMN_REFERENCE  qualifier1="Map_Operation" column="MD_CREATEDDATE" />
</DIExpression>
<DIExpression isString="true" expr="Map_Operation.MD_DELETEDDATE" >
<COLUMN_REFERENCE  qualifier1="Map_Operation" column="MD_DELETEDDATE" />
</DIExpression>
<DIExpression isString="true" expr="Map_Operation.MD_DURABLE_KEY" >
<COLUMN_REFERENCE  qualifier1="Map_Operation" column="MD_DURABLE_KEY" />
</DIExpression>
<DIExpression isString="true" expr="$G_MODDATE_LOC" >
<VARIABLE_REFERENCE name="$G_MODDATE_LOC" />
</DIExpression>
<DIExpression isString="true" expr="Map_Operation.MD_TRANSENDDATE" >
<COLUMN_REFERENCE  qualifier1="Map_Operation" column="MD_TRANSENDDATE" />
</DIExpression>
<DIExpression isString="true" expr="Map_Operation.MD_TRANSLASTIND" >
<COLUMN_REFERENCE  qualifier1="Map_Operation" column="MD_TRANSLASTIND" />
</DIExpression>
<DIExpression isString="true" expr="Map_Operation.PK_STATUS_ID" >
<COLUMN_REFERENCE  qualifier1="Map_Operation" column="PK_STATUS_ID" />
</DIExpression>
<DIExpression isString="true" expr="Map_Operation.STATUS_NAME" >
<COLUMN_REFERENCE  qualifier1="Map_Operation" column="STATUS_NAME" />
</DIExpression>
</DIProjection>
<DIFrom>
<DITableSpec name="Map_Operation" />
</DIFrom>
</DISelect>
<DIAttributes>
<DIAttribute name="distinct_run_as_separate_process" value="no"/>
<DIAttribute name="group_by_run_as_separate_process" value="no"/>
<DIAttribute name="join_run_as_separate_process" value="no"/>
<DIAttribute name="order_by_run_as_separate_process" value="no"/>
<DIAttribute name="run_as_separate_process" value="no"/>
</DIAttributes>
</DIQuery>

<DIDatabaseTableSource typeId="22" datastoreName="DWSTAGING_DS" ownerName="DWSTAGING_ALIAS" tableName="STATUS_MSC" >
<DIOutputView name="STATUS_MSC"  />
<DIAttributes>
<DIAttribute name="array_fetch_size" value="1000"/>
<DIAttribute name="cache" value="yes"/>
<DIAttribute name="connection_port" value="no"/>
<DIAttribute name="enable_partitioning" value="no"/>
<DIAttribute name="name" value="DWSTAGING_DS"/>
<DIAttribute name="package_size" value="0"/>
<DIAttribute name="reader_is_DB2CDC_table" value="no"/>
<DIAttribute name="reader_overflow_file" value="overflow_file"/>
<DIAttribute name="reader_template_table" value="no"/>
<DIAttribute name="reader_use_overflow_file" value="no"/>
<DIAttribute name="reader_use_trex_transaction" value="no"/>
<DIAttribute name="table_weight" value="0"/>
</DIAttributes>
</DIDatabaseTableSource>


<!-- GUID is optional -->
<DITransformCall typeId="210" name="Case_Operation"  >
<DIUIOptions>
<DIAttribute name="Case_1_NEW" value="STATUS_MSC.MD_FLAG=$G_FLAG_NEW"/>
<DIAttribute name="Case_1_UPDATES" value="STATUS_MSC.MD_FLAG=$G_FLAG_UPDATE"/>
<DIAttribute name="ui_acta_from_schema_0" value="STATUS_MSC"/>
</DIUIOptions>
<DIInputView name="STATUS_MSC" />
<DISchema name="Case_1" >
</DISchema>
<DICase>
<DISwitch label="NEW" outputView="Case_1_NEW" isDefault="false">
<DIExpression isString="true" expr="(STATUS_MSC.MD_FLAG = $G_FLAG_NEW)" >
<LOGICAL_OP op="EQ">
<COLUMN_REFERENCE  qualifier1="STATUS_MSC" column="MD_FLAG" />
<VARIABLE_REFERENCE name="$G_FLAG_NEW" />
</LOGICAL_OP>
</DIExpression>
</DISwitch>
<DISwitch label="UPDATES" outputView="Case_1_UPDATES" isDefault="false">
<DIExpression isString="true" expr="(STATUS_MSC.MD_FLAG = $G_FLAG_UPDATE)" >
<LOGICAL_OP op="EQ">
<COLUMN_REFERENCE  qualifier1="STATUS_MSC" column="MD_FLAG" />
<VARIABLE_REFERENCE name="$G_FLAG_UPDATE" />
</LOGICAL_OP>
</DIExpression>
</DISwitch>
</DICase>
<DIAttributes>
<DIAttribute name="Mutually_Exclusive" value="yes"/>
<DIAttribute name="Preserve_Expression_Order" value="no"/>
</DIAttributes>
</DITransformCall>
</DITransforms>
<DIAttributes>
<DIAttribute name="Cache_type" value="pageable_cache"/>
<DIAttribute name="Parallelism_degree" value="0"/>
<DIAttribute name="allows_both_input_and_output" value="yes"/>
<DIAttribute name="run_once" value="no"/>
<DIAttribute name="use_dataflow_links" value="no"/>
<DIAttribute name="use_datastore_links" value="yes"/>
<DIAttribute name="validation_xform_exists" value="no"/>
<DIAttribute name="validation_xform_stats" value="no"/>
</DIAttributes>
</DIDataflow>
<DIWorkflow name="EXTN_LOOKUP_CONT_WF" typeId="2" >
<DIUIOptions>
<DIAnnotation name="ANNOTATION_0"><DIAttribute name="ObjectDesc" value="This workflow is a container for the entities concerned by the Lookup ETL Step for the external files"/>
</DIAnnotation></DIUIOptions>
<DIProperties>
<DIAttribute name="GeneratorTemplate" value="ENTITY_LEVEL_FOR_PRODUCT_CONTAINER_WF (version 0.13.0-SNAPSHOT)"/>
<DIAttribute name="GeneratorVersion" value="v1.0"/>
<DIAttribute name="GenerationDate" value="Fri, 23 Jan 2009 10:49:48"/>
<DIAttribute name="Description" value="This workflow is a container for the entities concerned by the Lookup ETL Step for the external files. It integrates the following entities:&#xD;&#xA;  - BUDGET (version 1.0)&#xD;&#xA;  - COSTCATEGORY (version 1.0)&#xD;&#xA;  - MEASURETYPE (version 1.0)&#xD;&#xA;  - PROGRAM (version 1)&#xD;&#xA;  - STATUS (version 1.0)&#xD;&#xA;"/>
</DIProperties>
<DISteps>
<DICallStep typeId="0"  calledObjectType="Workflow" name="BUDGET_LOOKUP_WF" >
</DICallStep>
<DICallStep typeId="0"  calledObjectType="Workflow" name="COSTCATEGORY_LOOKUP_WF" >
</DICallStep>
<DICallStep typeId="0"  calledObjectType="Workflow" name="MEASURETYPE_LOOKUP_WF" >
</DICallStep>
<DICallStep typeId="0"  calledObjectType="Workflow" name="EXTERN_PROGRAM_LOOKUP_WF" >
</DICallStep>
<DICallStep typeId="0"  calledObjectType="Workflow" name="STATUS_LOOKUP_WF" >
</DICallStep>
</DISteps>
<DIAttributes>
<DIAttribute name="run_once" value="no"/>
<DIAttribute name="unit_of_recovery" value="no"/>
</DIAttributes>
</DIWorkflow>
<DIWorkflow name="BUDGET_LOOKUP_WF" typeId="2" >
<DIVariables>
<DIElement paramType="LOCAL" name="$L_IDENTIFIER" datatype="VARCHAR" size="60" >
</DIElement>
<DIElement paramType="LOCAL" name="$L_EXTRACT_BEGIN_DATE" datatype="DATETIME" >
</DIElement>
<DIElement paramType="LOCAL" name="$L_EXTRACT_END_DATE" datatype="DATETIME" >
</DIElement>
</DIVariables>
<DISteps>
<DICallStep typeId="0"  calledObjectType="Workflow" name="BUDGET_KEY_LOOKUP_NEW_WF" >
</DICallStep>
<DICallStep typeId="0"  calledObjectType="Workflow" name="BUDGET_KEY_LOOKUP_UPD_WF" >
</DICallStep>
</DISteps>
<DIAttributes>
<DIAttribute name="run_once" value="no"/>
<DIAttribute name="unit_of_recovery" value="no"/>
</DIAttributes>
</DIWorkflow>
<DIWorkflow name="BUDGET_KEY_LOOKUP_NEW_WF" typeId="2" >
<DIProperties>
<DIAttribute name="Description" value="The workflow {TARGET DIMENSION NAME}_LOOKUP_WF is the workflow responsible for loading dimension keys that are generated into the table DIMENSIONKEY_LOOKUP.  The workflow will be composed of the following objects:&#xA;•&#x9;{TARGET DIMENSION NAME}_LOOKUP_TRY – The beginning of the TRY/CATCH block in Data Services&#xA;•&#x9;{TARGET DIMENSION NAME}_LOOKUP_START_SC – The script that calls the custom function that initiates the metadata tracking for the workflow. The script also calls the custom function that creates pseudo surrogate key record. &#xA;•&#x9;{TARGET DIMENSION NAME}_LOOKUP_DEL_DF – The dataflow that is based on the incoming _XFRD load ready target staging tables to query the DIMENSIONKEY_LOOKUP table with the records to delete and Map all rows as Normal for deletion.&#xA;•&#x9;{TARGET DIMENSION NAME}_LOOKUP_UPD_DF – The dataflow that is based on the incoming _XFRU load ready target staging tables to query based on the durable key field and post updates to DIMENSIONKEY_LOOKUP table.&#xA;•&#x9;{TARGET DIMENSION NAME}_LOOKUP_NEW_DF – The dataflow that is based on the incoming _XFRN load ready target staging tables to populate the dimension name, durable and surrogate key fields for new records to the DIMENSIONKEY_LOOKUP table. This table is then used as a lookup table for the fact table.&#xA;•&#x9;{TARGET DIMENSION NAME}_LOOKUP_END_SC – The script that calls the custom function that closes the metadata for the workflow.&#xA;•&#x9;{TARGET DIMENSION NAME}_LOOKUP_CATCH – The end of the TRY/CATCH block.  It contains the script that calls the custom function which writes metadata if there is a failure."/>
</DIProperties>
<DIVariables>
<DIElement paramType="LOCAL" name="$L_IDENTIFIER" datatype="VARCHAR" size="60" >
</DIElement>
<DIElement paramType="LOCAL" name="$L_EXTRACT_BEGIN_DATE" datatype="DATETIME" >
</DIElement>
<DIElement paramType="LOCAL" name="$L_EXTRACT_END_DATE" datatype="DATETIME" >
</DIElement>
</DIVariables>
<DISteps>
<DITryStep typeId="13" >
<DIUIOptions>
<DIAttribute name="ObjectDesc" value="the Try of the Try / Catch Block"/>
<DIAttribute name="ui_display_name" value="BUDGET_KEY_LOOKUP_NEW_TRY"/>
</DIUIOptions>
<DISteps>
<DIScript>
<DIUIOptions>
<DIAttribute name="ObjectDesc" value="The workflow script object which contains the script to call the custom start workflow function.  This script opens the metadata records that are part of this process"/>
<DIAttribute name="ui_display_name" value="BUDGET_KEY_LOOKUP_NEW_START_SC"/>
<DIAttribute name="ui_script_text" value="#-- ABC ---&#xA;$L_IDENTIFIER = workflow_name();&#xA;ABC_STARTWF_FN($L_IDENTIFIER, $G_PROCESS_ID);&#xA;&#xA;#------------------&#xA;if( $G_TRACE_MODE = 1)&#xA;Begin&#xA;print(' ');&#xA;print(' ');&#xA;print('The Workfolw ' || workflow_name() || ' is running in Debug mode.');&#xA;print(' ');&#xA;print(' ');&#xA;END&#xA;"/>
</DIUIOptions>
<DIAssignmentStep typeId="12" variable="$L_IDENTIFIER" >
<DIExpression isString="true" expr="workflow_name()" >
<FUNCTION_CALL name="workflow_name"  type="DI" />
</DIExpression>
</DIAssignmentStep>
<DIFunctionCallStep typeId="23" >
<DIExpression isString="true" expr="abc_startwf_fn($L_IDENTIFIER, $G_PROCESS_ID)" >
<FUNCTION_CALL name="abc_startwf_fn"  type="DI" >
<VARIABLE_REFERENCE name="$L_IDENTIFIER" />
<VARIABLE_REFERENCE name="$G_PROCESS_ID" />
</FUNCTION_CALL>
</DIExpression>
</DIFunctionCallStep>
<DIIfStep typeId="2" >
<DIExpression isString="true" expr="($G_TRACE_MODE = 1)" >
<LOGICAL_OP op="EQ">
<VARIABLE_REFERENCE name="$G_TRACE_MODE" />
<CONSTANT value="1" datatype="INT" />
</LOGICAL_OP>
</DIExpression>
<DIIf>
<DIFunctionCallStep typeId="23" >
<DIExpression isString="true" expr="print(' ')" >
<FUNCTION_CALL name="print"  type="DI" >
<CONSTANT value=" " datatype="VARCHAR" size="1" />
</FUNCTION_CALL>
</DIExpression>
</DIFunctionCallStep>
<DIFunctionCallStep typeId="23" >
<DIExpression isString="true" expr="print(' ')" >
<FUNCTION_CALL name="print"  type="DI" >
<CONSTANT value=" " datatype="VARCHAR" size="1" />
</FUNCTION_CALL>
</DIExpression>
</DIFunctionCallStep>
<DIFunctionCallStep typeId="23" >
<DIExpression isString="true" expr="print((('The Workfolw ' || workflow_name()) || ' is running in Debug mode.'))" >
<FUNCTION_CALL name="print"  type="DI" >
<CONCAT>
<CONCAT>
<CONSTANT value="The Workfolw " datatype="VARCHAR" size="13" />
<FUNCTION_CALL name="workflow_name"  type="DI" />
</CONCAT>
<CONSTANT value=" is running in Debug mode." datatype="VARCHAR" size="26" />
</CONCAT>
</FUNCTION_CALL>
</DIExpression>
</DIFunctionCallStep>
<DIFunctionCallStep typeId="23" >
<DIExpression isString="true" expr="print(' ')" >
<FUNCTION_CALL name="print"  type="DI" >
<CONSTANT value=" " datatype="VARCHAR" size="1" />
</FUNCTION_CALL>
</DIExpression>
</DIFunctionCallStep>
<DIFunctionCallStep typeId="23" >
<DIExpression isString="true" expr="print(' ')" >
<FUNCTION_CALL name="print"  type="DI" >
<CONSTANT value=" " datatype="VARCHAR" size="1" />
</FUNCTION_CALL>
</DIExpression>
</DIFunctionCallStep>
</DIIf>
<DIElse>
</DIElse>
</DIIfStep>
</DIScript>
<DICallStep typeId="1"  calledObjectType="Dataflow" name="BUDGET_KEY_LOOKUP_NEW_DF" >
</DICallStep>
<DIScript>
<DIUIOptions>
<DIAttribute name="ui_display_name" value="BUDGET_KEY_LOOKUP_NEW_END_SC"/>
<DIAttribute name="ui_script_text" value="#--- ABC ---&#xA;ABC_ENDWF_FN($L_IDENTIFIER, $G_PROCESS_ID);&#xA;&#xA;&#xA;#---&#xA;&#xA;if( $G_TRACE_MODE = 1)&#xA;Begin&#xA;print(' ');&#xA;print(' ');&#xA;print('The Workfolw ' || workflow_name() || ' is completed running in Debug mode.');&#xA;print(' ');&#xA;print(' ');&#xA;END"/>
</DIUIOptions>
<DIFunctionCallStep typeId="23" >
<DIExpression isString="true" expr="abc_endwf_fn($L_IDENTIFIER, $G_PROCESS_ID)" >
<FUNCTION_CALL name="abc_endwf_fn"  type="DI" >
<VARIABLE_REFERENCE name="$L_IDENTIFIER" />
<VARIABLE_REFERENCE name="$G_PROCESS_ID" />
</FUNCTION_CALL>
</DIExpression>
</DIFunctionCallStep>
<DIIfStep typeId="2" >
<DIExpression isString="true" expr="($G_TRACE_MODE = 1)" >
<LOGICAL_OP op="EQ">
<VARIABLE_REFERENCE name="$G_TRACE_MODE" />
<CONSTANT value="1" datatype="INT" />
</LOGICAL_OP>
</DIExpression>
<DIIf>
<DIFunctionCallStep typeId="23" >
<DIExpression isString="true" expr="print(' ')" >
<FUNCTION_CALL name="print"  type="DI" >
<CONSTANT value=" " datatype="VARCHAR" size="1" />
</FUNCTION_CALL>
</DIExpression>
</DIFunctionCallStep>
<DIFunctionCallStep typeId="23" >
<DIExpression isString="true" expr="print(' ')" >
<FUNCTION_CALL name="print"  type="DI" >
<CONSTANT value=" " datatype="VARCHAR" size="1" />
</FUNCTION_CALL>
</DIExpression>
</DIFunctionCallStep>
<DIFunctionCallStep typeId="23" >
<DIExpression isString="true" expr="print((('The Workfolw ' || workflow_name()) || ' is completed running in Debug mode.'))" >
<FUNCTION_CALL name="print"  type="DI" >
<CONCAT>
<CONCAT>
<CONSTANT value="The Workfolw " datatype="VARCHAR" size="13" />
<FUNCTION_CALL name="workflow_name"  type="DI" />
</CONCAT>
<CONSTANT value=" is completed running in Debug mode." datatype="VARCHAR" size="36" />
</CONCAT>
</FUNCTION_CALL>
</DIExpression>
</DIFunctionCallStep>
<DIFunctionCallStep typeId="23" >
<DIExpression isString="true" expr="print(' ')" >
<FUNCTION_CALL name="print"  type="DI" >
<CONSTANT value=" " datatype="VARCHAR" size="1" />
</FUNCTION_CALL>
</DIExpression>
</DIFunctionCallStep>
<DIFunctionCallStep typeId="23" >
<DIExpression isString="true" expr="print(' ')" >
<FUNCTION_CALL name="print"  type="DI" >
<CONSTANT value=" " datatype="VARCHAR" size="1" />
</FUNCTION_CALL>
</DIExpression>
</DIFunctionCallStep>
</DIIf>
<DIElse>
</DIElse>
</DIIfStep>
</DIScript>
</DISteps>
<DICatch typeId="20" errorCode="210101" >
<DIUIOptions>
<DIAttribute name="ui_display_name" value="BUDGET_KEY_LOOKUP_NEW_CATCH"/>
</DIUIOptions>
<DISteps>
<DIScript>
<DIUIOptions>
<DIAttribute name="ui_display_name" value="BUDGET_KEY_LOOKUP_FAIL_SC"/>
<DIAttribute name="ui_script_text" value="#ABC - CALL FUNCTION TO TRACK END OF WORKFLOW&#xA;ABC_FAILWF_FN(workflow_name(), $G_PROCESS_ID, 'Error: \[' || error_number() || '\] ' || error_message());&#xA;&#xA;&#xA;#-------------&#xA;if($G_TRACE_MODE=1)&#xA;begin&#xA;print(' ');&#xA;print(' ');&#xA;print('Message from the PERIOD_LOOKUP_NEW_CATCH Block Script:');&#xA;print('The Workflow ' || workflow_name() || ' has failed to run.');&#xA;print(' ');&#xA;print(' ');&#xA;end"/>
</DIUIOptions>
<DIFunctionCallStep typeId="23" >
<DIExpression isString="true" expr="abc_failwf_fn(workflow_name(), $G_PROCESS_ID, ((('Error: \\[' || error_number()) || '\\] ') || error_message()))" >
<FUNCTION_CALL name="abc_failwf_fn"  type="DI" >
<FUNCTION_CALL name="workflow_name"  type="DI" />
<VARIABLE_REFERENCE name="$G_PROCESS_ID" />
<CONCAT>
<CONCAT>
<CONCAT>
<CONSTANT value="Error: \[" datatype="VARCHAR" size="9" />
<FUNCTION_CALL name="error_number"  type="DI" />
</CONCAT>
<CONSTANT value="\] " datatype="VARCHAR" size="3" />
</CONCAT>
<FUNCTION_CALL name="error_message"  type="DI" />
</CONCAT>
</FUNCTION_CALL>
</DIExpression>
</DIFunctionCallStep>
<DIIfStep typeId="2" >
<DIExpression isString="true" expr="($G_TRACE_MODE = 1)" >
<LOGICAL_OP op="EQ">
<VARIABLE_REFERENCE name="$G_TRACE_MODE" />
<CONSTANT value="1" datatype="INT" />
</LOGICAL_OP>
</DIExpression>
<DIIf>
<DIFunctionCallStep typeId="23" >
<DIExpression isString="true" expr="print(' ')" >
<FUNCTION_CALL name="print"  type="DI" >
<CONSTANT value=" " datatype="VARCHAR" size="1" />
</FUNCTION_CALL>
</DIExpression>
</DIFunctionCallStep>
<DIFunctionCallStep typeId="23" >
<DIExpression isString="true" expr="print(' ')" >
<FUNCTION_CALL name="print"  type="DI" >
<CONSTANT value=" " datatype="VARCHAR" size="1" />
</FUNCTION_CALL>
</DIExpression>
</DIFunctionCallStep>
<DIFunctionCallStep typeId="23" >
<DIExpression isString="true" expr="print('Message from the PERIOD_LOOKUP_NEW_CATCH Block Script:')" >
<FUNCTION_CALL name="print"  type="DI" >
<CONSTANT value="Message from the PERIOD_LOOKUP_NEW_CATCH Block Script:" datatype="VARCHAR" size="54" />
</FUNCTION_CALL>
</DIExpression>
</DIFunctionCallStep>
<DIFunctionCallStep typeId="23" >
<DIExpression isString="true" expr="print((('The Workflow ' || workflow_name()) || ' has failed to run.'))" >
<FUNCTION_CALL name="print"  type="DI" >
<CONCAT>
<CONCAT>
<CONSTANT value="The Workflow " datatype="VARCHAR" size="13" />
<FUNCTION_CALL name="workflow_name"  type="DI" />
</CONCAT>
<CONSTANT value=" has failed to run." datatype="VARCHAR" size="19" />
</CONCAT>
</FUNCTION_CALL>
</DIExpression>
</DIFunctionCallStep>
<DIFunctionCallStep typeId="23" >
<DIExpression isString="true" expr="print(' ')" >
<FUNCTION_CALL name="print"  type="DI" >
<CONSTANT value=" " datatype="VARCHAR" size="1" />
</FUNCTION_CALL>
</DIExpression>
</DIFunctionCallStep>
<DIFunctionCallStep typeId="23" >
<DIExpression isString="true" expr="print(' ')" >
<FUNCTION_CALL name="print"  type="DI" >
<CONSTANT value=" " datatype="VARCHAR" size="1" />
</FUNCTION_CALL>
</DIExpression>
</DIFunctionCallStep>
</DIIf>
<DIElse>
</DIElse>
</DIIfStep>
</DIScript>
</DISteps>
</DICatch>
</DITryStep>
</DISteps>
<DIAttributes>
<DIAttribute name="run_once" value="no"/>
<DIAttribute name="unit_of_recovery" value="no"/>
</DIAttributes>
</DIWorkflow>
<DIDataflow name="BUDGET_KEY_LOOKUP_NEW_DF" typeId="1" >
<DIUIOptions>
<DIAnnotation name="ANNOTATION_0"><DIAttribute name="ObjectDesc" value="Populate the dimension name, durable and surrogate key fields for new records from the XFRN staging table to the {ENTITY}_KEY_LOOKUP table. This table is then used as a lookup table for the fact table "/>
</DIAnnotation></DIUIOptions>
<DIProperties>
<DIAttribute name="Description" value="The dataflow that is based on the incoming _XFRN load ready target staging tables to populate the dimension name, durable and surrogate key fields for new records to the DIMENSIONKEY_LOOKUP table. This table is then used as a lookup table for the fact table."/>
</DIProperties>
<DITransforms>
<DIQuery typeId="122"  >
<DIUIOptions>
<DIAttribute name="ObjectDesc" value="Perform lookup on the ID field to see if it already exists, otherwise it is marked with value of 2. Then based on that value in the Case transform, map as either a New record or New SCD2 (update) record"/>
<DIAttribute name="ui_acta_from_schema_0" value="BUDGET_DIM_XFRN_V"/>
<DIAttribute name="ui_display_name" value="QRY_LKUP"/>
</DIUIOptions>
<DISchema name="QRY_LKUP" >
<DIElement name="PK_BUDGET_ID" datatype="DECIMAL" precision="18" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="BUDGET_DIM_XFRN_V.PK_BUDGET_ID&#xA;"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_DURABLE_KEY" datatype="DECIMAL" precision="18" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="BUDGET_DIM_XFRN_V.MD_DURABLE_KEY&#xA; &#xA;"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_SURROGATE_KEY" datatype="DECIMAL" precision="18" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="BUDGET_DIM_XFRN_V.PK_BUDGET_ID&#xA;"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_CREATEDDATE" datatype="DATETIME" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="BUDGET_DIM_XFRN_V.MD_CREATEDDATE&#xA; &#xA;"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_LASTMODDATE" datatype="DATETIME" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="BUDGET_DIM_XFRN_V.MD_LASTMODDATE&#xA; &#xA;"/>
</DIAttributes>
</DIElement>
</DISchema>
<DISelect>
<DIProjection>
<DIExpression isString="true" expr="BUDGET_DIM_XFRN_V.PK_BUDGET_ID" >
<COLUMN_REFERENCE  qualifier1="BUDGET_DIM_XFRN_V" column="PK_BUDGET_ID" />
</DIExpression>
<DIExpression isString="true" expr="BUDGET_DIM_XFRN_V.MD_DURABLE_KEY" >
<COLUMN_REFERENCE  qualifier1="BUDGET_DIM_XFRN_V" column="MD_DURABLE_KEY" />
</DIExpression>
<DIExpression isString="true" expr="BUDGET_DIM_XFRN_V.PK_BUDGET_ID" >
<COLUMN_REFERENCE  qualifier1="BUDGET_DIM_XFRN_V" column="PK_BUDGET_ID" />
</DIExpression>
<DIExpression isString="true" expr="BUDGET_DIM_XFRN_V.MD_CREATEDDATE" >
<COLUMN_REFERENCE  qualifier1="BUDGET_DIM_XFRN_V" column="MD_CREATEDDATE" />
</DIExpression>
<DIExpression isString="true" expr="BUDGET_DIM_XFRN_V.MD_LASTMODDATE" >
<COLUMN_REFERENCE  qualifier1="BUDGET_DIM_XFRN_V" column="MD_LASTMODDATE" />
</DIExpression>
</DIProjection>
<DIFrom>
<DITableSpec name="BUDGET_DIM_XFRN_V" />
</DIFrom>
</DISelect>
<DIAttributes>
<DIAttribute name="distinct_run_as_separate_process" value="no"/>
<DIAttribute name="group_by_run_as_separate_process" value="no"/>
<DIAttribute name="join_run_as_separate_process" value="no"/>
<DIAttribute name="order_by_run_as_separate_process" value="no"/>
<DIAttribute name="run_as_separate_process" value="no"/>
</DIAttributes>
</DIQuery>

<DIQuery typeId="122"  >
<DIUIOptions>
<DIAttribute name="ObjectDesc" value="Populate the dimension name, durable and surrogate key fields for new records from the XFRN staging table to the DIMENSIONKEY_LOOKUP table."/>
<DIAttribute name="ui_acta_from_schema_0" value="QRY_LKUP"/>
<DIAttribute name="ui_display_name" value="QRY_NEW"/>
</DIUIOptions>
<DISchema name="QRY_NEW" >
<DIElement name="PK_BUDGET_LOOKUP_ID" datatype="DECIMAL" precision="18" scale="0" key="true" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="greatest(5+gen_row_num(),key_generation('DWSTAGING_DS.DWSTAGING_ALIAS.BUDGET_KEY_LOOKUP', 'PK_BUDGET_LOOKUP_ID', 1))&#xA; &#xA;"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_DURABLE_KEY" datatype="DECIMAL" precision="18" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="QRY_LKUP.MD_DURABLE_KEY&#xA; &#xA;"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_SURROGATE_KEY" datatype="DECIMAL" precision="18" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="QRY_LKUP.PK_BUDGET_ID"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_FLAG" datatype="VARCHAR" size="10" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="$G_FLAG_NEW &#xA; &#xA;"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_CREATEDDATE" datatype="DATETIME" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="$G_MODDATE_LOC &#xA; &#xA;"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_LASTMODDATE" datatype="DATETIME" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="null&#xA; &#xA;"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_BATCH_ID" datatype="DECIMAL" precision="19" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="$G_BATCH_ID&#xA; &#xA;"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_PROCESS_ID" datatype="DECIMAL" precision="19" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="$G_PROCESS_ID &#xA; &#xA;"/>
</DIAttributes>
</DIElement>
</DISchema>
<DISelect>
<DIProjection>
<DIExpression isString="true" expr="greatest((5 + gen_row_num()), key_generation(DWSTAGING_DS.DWSTAGING_ALIAS.BUDGET_KEY_LOOKUP, 'PK_BUDGET_LOOKUP_ID', 1) )" >
<FUNCTION_CALL name="greatest"  type="DI" >
<ADD>
<CONSTANT value="5" datatype="INT" />
<FUNCTION_CALL name="gen_row_num"  type="DI" />
</ADD>
<FUNCTION_CALL name="key_generation"  type="DI" tableDatastore="DWSTAGING_DS" tableOwner="DWSTAGING_ALIAS" tableName="BUDGET_KEY_LOOKUP" >
<CONSTANT value="PK_BUDGET_LOOKUP_ID" datatype="VARCHAR" size="19" />
<CONSTANT value="1" datatype="INT" />
</FUNCTION_CALL>
</FUNCTION_CALL>
</DIExpression>
<DIExpression isString="true" expr="QRY_LKUP.MD_DURABLE_KEY" >
<COLUMN_REFERENCE  qualifier1="QRY_LKUP" column="MD_DURABLE_KEY" />
</DIExpression>
<DIExpression isString="true" expr="QRY_LKUP.PK_BUDGET_ID" >
<COLUMN_REFERENCE  qualifier1="QRY_LKUP" column="PK_BUDGET_ID" />
</DIExpression>
<DIExpression isString="true" expr="$G_FLAG_NEW" >
<VARIABLE_REFERENCE name="$G_FLAG_NEW" />
</DIExpression>
<DIExpression isString="true" expr="$G_MODDATE_LOC" >
<VARIABLE_REFERENCE name="$G_MODDATE_LOC" />
</DIExpression>
<DIExpression isString="true" expr=" NULL " >
<CONSTANT_NULL /></DIExpression>
<DIExpression isString="true" expr="$G_BATCH_ID" >
<VARIABLE_REFERENCE name="$G_BATCH_ID" />
</DIExpression>
<DIExpression isString="true" expr="$G_PROCESS_ID" >
<VARIABLE_REFERENCE name="$G_PROCESS_ID" />
</DIExpression>
</DIProjection>
<DIFrom>
<DITableSpec name="QRY_LKUP" />
</DIFrom>
</DISelect>
<DIAttributes>
<DIAttribute name="distinct_run_as_separate_process" value="no"/>
<DIAttribute name="group_by_run_as_separate_process" value="no"/>
<DIAttribute name="join_run_as_separate_process" value="no"/>
<DIAttribute name="order_by_run_as_separate_process" value="no"/>
<DIAttribute name="run_as_separate_process" value="no"/>
</DIAttributes>
</DIQuery>

<DIDatabaseTableSource typeId="22" datastoreName="DWSTAGING_DS" ownerName="DWSTAGING_ALIAS" tableName="BUDGET_DIM_XFRN_V" >
<DIOutputView name="BUDGET_DIM_XFRN_V"  />
<DIAttributes>
<DIAttribute name="array_fetch_size" value="1000"/>
<DIAttribute name="cache" value="yes"/>
<DIAttribute name="connection_port" value="no"/>
<DIAttribute name="enable_partitioning" value="no"/>
<DIAttribute name="name" value="DWSTAGING_DS"/>
<DIAttribute name="package_size" value="0"/>
<DIAttribute name="reader_is_DB2CDC_table" value="no"/>
<DIAttribute name="reader_overflow_file" value="overflow_file"/>
<DIAttribute name="reader_template_table" value="no"/>
<DIAttribute name="reader_use_overflow_file" value="no"/>
<DIAttribute name="table_weight" value="0"/>
</DIAttributes>
</DIDatabaseTableSource>

<DIDatabaseTableTarget typeID="11" bulkLoader="false" datastoreName="DWSTAGING_DS" ownerName="DWSTAGING_ALIAS" tableName="BUDGET_KEY_LOOKUP" >
<DIInputView name="QRY_NEW"  />
<DIAttributes>
<DIAttribute name="LDRLiveLoad" value="no"/>
<DIAttribute name="Table_Type" value="TABLE"/>
<DIAttribute name="connection_port" value="no"/>
<DIAttribute name="ldr_configuration_enabled" value="yes"/>
<DIAttribute name="ldr_configurations" hasNestedXMLTree ="true">
<LDRConfigurations>
<LDRConfiguration database_type="Microsoft_SQL_Server" database_version="Microsoft SQL Server 2005">
<bulk_ldr_all_rows/>
<bulk_ldr_max_errors/>
<bulk_ldr_rows_per_commit>1000</bulk_ldr_rows_per_commit>
<enable_partitioning>no</enable_partitioning>
<ignore_column_case>yes</ignore_column_case>
<ignore_columns_null>no</ignore_columns_null>
<ignore_columns_value/>
<loader_auto_correct>no</loader_auto_correct>
<loader_bulk_load/>
<loader_compare_column>compare_by_name</loader_compare_column>
<loader_delete_map/>
<loader_drop_and_create_table>yes</loader_drop_and_create_table>
<loader_insert_map/>
<loader_load_choice>append</loader_load_choice>
<loader_num_parallel_loaders>1</loader_num_parallel_loaders>
<loader_overflow_file>overflow_file</loader_overflow_file>
<loader_post_load1/>
<loader_pre_load1/>
<loader_quote_names>0</loader_quote_names>
<loader_transactional>no</loader_transactional>
<loader_transactional_order>0</loader_transactional_order>
<loader_update_key_columns>no</loader_update_key_columns>
<loader_update_map/>
<loader_use_user_defined_keys>no</loader_use_user_defined_keys>
<loader_xact_size>1000</loader_xact_size>
<mssql_bulk_ldr_mode>append</mssql_bulk_ldr_mode>
<mssql_bulk_ldr_packet_size>0</mssql_bulk_ldr_packet_size>
<overflow_file_format>write_data</overflow_file_format>
<use_overflow_file>no</use_overflow_file>
<use_unicode_varchar>no</use_unicode_varchar>
<sql_text/>
</LDRConfiguration>
</LDRConfigurations>
</DIAttribute>
<DIAttribute name="loader_template_table" value="no"/>
<DIAttribute name="name" value="DWSTAGING_DS"/>
<DIAttribute name="use_unicode_varchar" value="no"/>
</DIAttributes>
</DIDatabaseTableTarget>

</DITransforms>
<DIAttributes>
<DIAttribute name="Cache_type" value="pageable_cache"/>
<DIAttribute name="Parallelism_degree" value="0"/>
<DIAttribute name="allows_both_input_and_output" value="yes"/>
<DIAttribute name="run_once" value="no"/>
<DIAttribute name="use_dataflow_links" value="no"/>
<DIAttribute name="use_datastore_links" value="yes"/>
<DIAttribute name="validation_xform_exists" value="no"/>
<DIAttribute name="validation_xform_stats" value="no"/>
</DIAttributes>
</DIDataflow>
<DIWorkflow name="BUDGET_KEY_LOOKUP_UPD_WF" typeId="2" >
<DIProperties>
<DIAttribute name="Description" value="The workflow {TARGET DIMENSION NAME}_LOOKUP_WF is the workflow responsible for loading dimension keys that are generated into the table DIMENSIONKEY_LOOKUP.  The workflow will be composed of the following objects:&#xA;•&#x9;{TARGET DIMENSION NAME}_LOOKUP_TRY – The beginning of the TRY/CATCH block in Data Services&#xA;•&#x9;{TARGET DIMENSION NAME}_LOOKUP_START_SC – The script that calls the custom function that initiates the metadata tracking for the workflow. The script also calls the custom function that creates pseudo surrogate key record. &#xA;•&#x9;{TARGET DIMENSION NAME}_LOOKUP_DEL_DF – The dataflow that is based on the incoming _XFRD load ready target staging tables to query the DIMENSIONKEY_LOOKUP table with the records to delete and Map all rows as Normal for deletion.&#xA;•&#x9;{TARGET DIMENSION NAME}_LOOKUP_UPD_DF – The dataflow that is based on the incoming _XFRU load ready target staging tables to query based on the durable key field and post updates to DIMENSIONKEY_LOOKUP table.&#xA;•&#x9;{TARGET DIMENSION NAME}_LOOKUP_NEW_DF – The dataflow that is based on the incoming _XFRN load ready target staging tables to populate the dimension name, durable and surrogate key fields for new records to the DIMENSIONKEY_LOOKUP table. This table is then used as a lookup table for the fact table.&#xA;•&#x9;{TARGET DIMENSION NAME}_LOOKUP_END_SC – The script that calls the custom function that closes the metadata for the workflow.&#xA;•&#x9;{TARGET DIMENSION NAME}_LOOKUP_CATCH – The end of the TRY/CATCH block.  It contains the script that calls the custom function which writes metadata if there is a failure."/>
</DIProperties>
<DIVariables>
<DIElement paramType="LOCAL" name="$L_IDENTIFIER" datatype="VARCHAR" size="100" >
</DIElement>
<DIElement paramType="LOCAL" name="$L_EXTRACT_BEGIN_DATE" datatype="DATETIME" >
</DIElement>
<DIElement paramType="LOCAL" name="$L_EXTRACT_END_DATE" datatype="DATETIME" >
</DIElement>
</DIVariables>
<DISteps>
<DITryStep typeId="13" >
<DIUIOptions>
<DIAttribute name="ObjectDesc" value="the Try of the Try / Catch Block"/>
<DIAttribute name="ui_display_name" value="BUDGET_PERSON_KEY_LOOKUP_UPD_TRY"/>
</DIUIOptions>
<DISteps>
<DIScript>
<DIUIOptions>
<DIAttribute name="ObjectDesc" value="The workflow script object which contains the script to call the custom start workflow function.  This script opens the metadata records that are part of this process"/>
<DIAttribute name="ui_display_name" value="BUDGET_KEY_LOOKUP_UPD_START_SC"/>
<DIAttribute name="ui_script_text" value="#-- ABC ---&#xA;$L_IDENTIFIER = workflow_name();&#xA;ABC_STARTWF_FN($L_IDENTIFIER, $G_PROCESS_ID);&#xA;&#xA;#----&#xA;if( $G_TRACE_MODE = 1)&#xA;Begin&#xA;print(' ');&#xA;print(' ');&#xA;print('The Workfolw ' || workflow_name() || ' is running in Debug mode.');&#xA;print(' ');&#xA;print(' ');&#xA;END&#xA;"/>
</DIUIOptions>
<DIAssignmentStep typeId="12" variable="$L_IDENTIFIER" >
<DIExpression isString="true" expr="workflow_name()" >
<FUNCTION_CALL name="workflow_name"  type="DI" />
</DIExpression>
</DIAssignmentStep>
<DIFunctionCallStep typeId="23" >
<DIExpression isString="true" expr="abc_startwf_fn($L_IDENTIFIER, $G_PROCESS_ID)" >
<FUNCTION_CALL name="abc_startwf_fn"  type="DI" >
<VARIABLE_REFERENCE name="$L_IDENTIFIER" />
<VARIABLE_REFERENCE name="$G_PROCESS_ID" />
</FUNCTION_CALL>
</DIExpression>
</DIFunctionCallStep>
<DIIfStep typeId="2" >
<DIExpression isString="true" expr="($G_TRACE_MODE = 1)" >
<LOGICAL_OP op="EQ">
<VARIABLE_REFERENCE name="$G_TRACE_MODE" />
<CONSTANT value="1" datatype="INT" />
</LOGICAL_OP>
</DIExpression>
<DIIf>
<DIFunctionCallStep typeId="23" >
<DIExpression isString="true" expr="print(' ')" >
<FUNCTION_CALL name="print"  type="DI" >
<CONSTANT value=" " datatype="VARCHAR" size="1" />
</FUNCTION_CALL>
</DIExpression>
</DIFunctionCallStep>
<DIFunctionCallStep typeId="23" >
<DIExpression isString="true" expr="print(' ')" >
<FUNCTION_CALL name="print"  type="DI" >
<CONSTANT value=" " datatype="VARCHAR" size="1" />
</FUNCTION_CALL>
</DIExpression>
</DIFunctionCallStep>
<DIFunctionCallStep typeId="23" >
<DIExpression isString="true" expr="print((('The Workfolw ' || workflow_name()) || ' is running in Debug mode.'))" >
<FUNCTION_CALL name="print"  type="DI" >
<CONCAT>
<CONCAT>
<CONSTANT value="The Workfolw " datatype="VARCHAR" size="13" />
<FUNCTION_CALL name="workflow_name"  type="DI" />
</CONCAT>
<CONSTANT value=" is running in Debug mode." datatype="VARCHAR" size="26" />
</CONCAT>
</FUNCTION_CALL>
</DIExpression>
</DIFunctionCallStep>
<DIFunctionCallStep typeId="23" >
<DIExpression isString="true" expr="print(' ')" >
<FUNCTION_CALL name="print"  type="DI" >
<CONSTANT value=" " datatype="VARCHAR" size="1" />
</FUNCTION_CALL>
</DIExpression>
</DIFunctionCallStep>
<DIFunctionCallStep typeId="23" >
<DIExpression isString="true" expr="print(' ')" >
<FUNCTION_CALL name="print"  type="DI" >
<CONSTANT value=" " datatype="VARCHAR" size="1" />
</FUNCTION_CALL>
</DIExpression>
</DIFunctionCallStep>
</DIIf>
<DIElse>
</DIElse>
</DIIfStep>
</DIScript>
<DICallStep typeId="1"  calledObjectType="Dataflow" name="BUDGET_KEY_LOOKUP_UPD_DF" >
</DICallStep>
<DIScript>
<DIUIOptions>
<DIAttribute name="ui_display_name" value="BUDGET_KEY_LOOKUP_UPD_END_SC"/>
<DIAttribute name="ui_script_text" value="#--- ABC ---&#xA;ABC_ENDWF_FN($L_IDENTIFIER, $G_PROCESS_ID);&#xA;&#xA;#----&#xA;if( $G_DEBUG_MODE = 1)&#xA;Begin&#xA;print(' ');&#xA;print(' ');&#xA;print('The Workfolw ' || workflow_name() || ' is completed running in Debug mode.');&#xA;print(' ');&#xA;print(' ');&#xA;END"/>
</DIUIOptions>
<DIFunctionCallStep typeId="23" >
<DIExpression isString="true" expr="abc_endwf_fn($L_IDENTIFIER, $G_PROCESS_ID)" >
<FUNCTION_CALL name="abc_endwf_fn"  type="DI" >
<VARIABLE_REFERENCE name="$L_IDENTIFIER" />
<VARIABLE_REFERENCE name="$G_PROCESS_ID" />
</FUNCTION_CALL>
</DIExpression>
</DIFunctionCallStep>
<DIIfStep typeId="2" >
<DIExpression isString="true" expr="($G_DEBUG_MODE = 1)" >
<LOGICAL_OP op="EQ">
<VARIABLE_REFERENCE name="$G_DEBUG_MODE" />
<CONSTANT value="1" datatype="INT" />
</LOGICAL_OP>
</DIExpression>
<DIIf>
<DIFunctionCallStep typeId="23" >
<DIExpression isString="true" expr="print(' ')" >
<FUNCTION_CALL name="print"  type="DI" >
<CONSTANT value=" " datatype="VARCHAR" size="1" />
</FUNCTION_CALL>
</DIExpression>
</DIFunctionCallStep>
<DIFunctionCallStep typeId="23" >
<DIExpression isString="true" expr="print(' ')" >
<FUNCTION_CALL name="print"  type="DI" >
<CONSTANT value=" " datatype="VARCHAR" size="1" />
</FUNCTION_CALL>
</DIExpression>
</DIFunctionCallStep>
<DIFunctionCallStep typeId="23" >
<DIExpression isString="true" expr="print((('The Workfolw ' || workflow_name()) || ' is completed running in Debug mode.'))" >
<FUNCTION_CALL name="print"  type="DI" >
<CONCAT>
<CONCAT>
<CONSTANT value="The Workfolw " datatype="VARCHAR" size="13" />
<FUNCTION_CALL name="workflow_name"  type="DI" />
</CONCAT>
<CONSTANT value=" is completed running in Debug mode." datatype="VARCHAR" size="36" />
</CONCAT>
</FUNCTION_CALL>
</DIExpression>
</DIFunctionCallStep>
<DIFunctionCallStep typeId="23" >
<DIExpression isString="true" expr="print(' ')" >
<FUNCTION_CALL name="print"  type="DI" >
<CONSTANT value=" " datatype="VARCHAR" size="1" />
</FUNCTION_CALL>
</DIExpression>
</DIFunctionCallStep>
<DIFunctionCallStep typeId="23" >
<DIExpression isString="true" expr="print(' ')" >
<FUNCTION_CALL name="print"  type="DI" >
<CONSTANT value=" " datatype="VARCHAR" size="1" />
</FUNCTION_CALL>
</DIExpression>
</DIFunctionCallStep>
</DIIf>
<DIElse>
</DIElse>
</DIIfStep>
</DIScript>
</DISteps>
<DICatch typeId="20" errorCode="210101" >
<DIUIOptions>
<DIAttribute name="ui_display_name" value="BUDGET_KEY_LOOKUP_UPD_CATCH"/>
</DIUIOptions>
<DISteps>
<DIScript>
<DIUIOptions>
<DIAttribute name="ui_display_name" value="BUDGET_KEY_LOOKUP_FAIL_SC"/>
<DIAttribute name="ui_script_text" value="#ABC - CALL FUNCTION TO TRACK END OF WORKFLOW&#xA;ABC_FAILWF_FN(workflow_name(), $G_PROCESS_ID, 'Error: \[' || error_number() || '\] ' || error_message());&#xA;&#xA;#----&#xA;if($G_TRACE_MODE=1)&#xA;begin&#xA;print(' ');&#xA;print(' ');&#xA;print('Message from the PERIOD_LOOKUP_UPD_CATCH Block Script:');&#xA;print('The Workflow ' || workflow_name() || ' has failed to run.');&#xA;print(' ');&#xA;print(' ');&#xA;end"/>
</DIUIOptions>
<DIFunctionCallStep typeId="23" >
<DIExpression isString="true" expr="abc_failwf_fn(workflow_name(), $G_PROCESS_ID, ((('Error: \\[' || error_number()) || '\\] ') || error_message()))" >
<FUNCTION_CALL name="abc_failwf_fn"  type="DI" >
<FUNCTION_CALL name="workflow_name"  type="DI" />
<VARIABLE_REFERENCE name="$G_PROCESS_ID" />
<CONCAT>
<CONCAT>
<CONCAT>
<CONSTANT value="Error: \[" datatype="VARCHAR" size="9" />
<FUNCTION_CALL name="error_number"  type="DI" />
</CONCAT>
<CONSTANT value="\] " datatype="VARCHAR" size="3" />
</CONCAT>
<FUNCTION_CALL name="error_message"  type="DI" />
</CONCAT>
</FUNCTION_CALL>
</DIExpression>
</DIFunctionCallStep>
<DIIfStep typeId="2" >
<DIExpression isString="true" expr="($G_TRACE_MODE = 1)" >
<LOGICAL_OP op="EQ">
<VARIABLE_REFERENCE name="$G_TRACE_MODE" />
<CONSTANT value="1" datatype="INT" />
</LOGICAL_OP>
</DIExpression>
<DIIf>
<DIFunctionCallStep typeId="23" >
<DIExpression isString="true" expr="print(' ')" >
<FUNCTION_CALL name="print"  type="DI" >
<CONSTANT value=" " datatype="VARCHAR" size="1" />
</FUNCTION_CALL>
</DIExpression>
</DIFunctionCallStep>
<DIFunctionCallStep typeId="23" >
<DIExpression isString="true" expr="print(' ')" >
<FUNCTION_CALL name="print"  type="DI" >
<CONSTANT value=" " datatype="VARCHAR" size="1" />
</FUNCTION_CALL>
</DIExpression>
</DIFunctionCallStep>
<DIFunctionCallStep typeId="23" >
<DIExpression isString="true" expr="print('Message from the PERIOD_LOOKUP_UPD_CATCH Block Script:')" >
<FUNCTION_CALL name="print"  type="DI" >
<CONSTANT value="Message from the PERIOD_LOOKUP_UPD_CATCH Block Script:" datatype="VARCHAR" size="54" />
</FUNCTION_CALL>
</DIExpression>
</DIFunctionCallStep>
<DIFunctionCallStep typeId="23" >
<DIExpression isString="true" expr="print((('The Workflow ' || workflow_name()) || ' has failed to run.'))" >
<FUNCTION_CALL name="print"  type="DI" >
<CONCAT>
<CONCAT>
<CONSTANT value="The Workflow " datatype="VARCHAR" size="13" />
<FUNCTION_CALL name="workflow_name"  type="DI" />
</CONCAT>
<CONSTANT value=" has failed to run." datatype="VARCHAR" size="19" />
</CONCAT>
</FUNCTION_CALL>
</DIExpression>
</DIFunctionCallStep>
<DIFunctionCallStep typeId="23" >
<DIExpression isString="true" expr="print(' ')" >
<FUNCTION_CALL name="print"  type="DI" >
<CONSTANT value=" " datatype="VARCHAR" size="1" />
</FUNCTION_CALL>
</DIExpression>
</DIFunctionCallStep>
<DIFunctionCallStep typeId="23" >
<DIExpression isString="true" expr="print(' ')" >
<FUNCTION_CALL name="print"  type="DI" >
<CONSTANT value=" " datatype="VARCHAR" size="1" />
</FUNCTION_CALL>
</DIExpression>
</DIFunctionCallStep>
</DIIf>
<DIElse>
</DIElse>
</DIIfStep>
</DIScript>
</DISteps>
</DICatch>
</DITryStep>
</DISteps>
<DIAttributes>
<DIAttribute name="run_once" value="no"/>
<DIAttribute name="unit_of_recovery" value="no"/>
</DIAttributes>
</DIWorkflow>
<DIDataflow name="BUDGET_KEY_LOOKUP_UPD_DF" typeId="1" >
<DIProperties>
<DIAttribute name="Description" value="The dataflow that is based on the incoming _XFRU load ready target staging tables to query based on the durable key field and post updates to DIMENSIONKEY_LOOKUP table"/>
</DIProperties>
<DITransforms>
<DIQuery typeId="122"  >
<DIUIOptions>
<DIAttribute name="ObjectDesc" value="Post updates to DIMENSIONKEY_LOOKUP table based on durable key field."/>
<DIAttribute name="ui_acta_from_schema_0" value="BUDGET_DIM_XFRU_V"/>
<DIAttribute name="ui_display_name" value="QRY_UPD"/>
</DIUIOptions>
<DISchema name="QRY_UPD" >
<DIElement name="PK_BUDGET_LOOKUP_ID" datatype="INT" key="true" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="lookup(DWSTAGING_DS.DWSTAGING_ALIAS.BUDGET_KEY_LOOKUP, PK_BUDGET_LOOKUP_ID, '-2', 'NO_CACHE', MD_DURABLE_KEY, MD_DURABLE_KEY, MD_SURROGATE_KEY, PK_BUDGET_ID) &#xA; &#xA;"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_DURABLE_KEY" datatype="DECIMAL" precision="18" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="BUDGET_DIM_XFRU_V.MD_DURABLE_KEY&#xA; &#xA;"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_SURROGATE_KEY" datatype="DECIMAL" precision="18" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="BUDGET_DIM_XFRU_V.PK_BUDGET_ID&#xA; &#xA;"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_FLAG" datatype="VARCHAR" size="10" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="$G_FLAG_UPDATE &#xA; &#xA;"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_CREATEDDATE" datatype="DATETIME" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="$G_MODDATE_LOC &#xA; &#xA;"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_LASTMODDATE" datatype="DATETIME" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="$G_MODDATE_LOC &#xA; &#xA;"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_BATCH_ID" datatype="DECIMAL" precision="19" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="$G_BATCH_ID&#xA; &#xA;"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_PROCESS_ID" datatype="DECIMAL" precision="19" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="$G_PROCESS_ID &#xA; &#xA;"/>
</DIAttributes>
</DIElement>
</DISchema>
<DISelect>
<DIProjection>
<DIExpression isString="true" expr="lookup(DWSTAGING_DS.DWSTAGING_ALIAS.BUDGET_KEY_LOOKUP, PK_BUDGET_LOOKUP_ID, '-2', 'NO_CACHE', MD_DURABLE_KEY, MD_DURABLE_KEY, MD_SURROGATE_KEY, PK_BUDGET_ID) " >
<FUNCTION_CALL name="lookup"  type="DI" tableDatastore="DWSTAGING_DS" tableOwner="DWSTAGING_ALIAS" tableName="BUDGET_KEY_LOOKUP" >
<COLUMN_REFERENCE  column="PK_BUDGET_LOOKUP_ID" />
<CONSTANT value="-2" datatype="VARCHAR" size="2" />
<CONSTANT value="NO_CACHE" datatype="VARCHAR" size="8" />
<COLUMN_REFERENCE  column="MD_DURABLE_KEY" />
<COLUMN_REFERENCE  column="MD_DURABLE_KEY" />
<COLUMN_REFERENCE  column="MD_SURROGATE_KEY" />
<COLUMN_REFERENCE  column="PK_BUDGET_ID" />
</FUNCTION_CALL>
</DIExpression>
<DIExpression isString="true" expr="BUDGET_DIM_XFRU_V.MD_DURABLE_KEY" >
<COLUMN_REFERENCE  qualifier1="BUDGET_DIM_XFRU_V" column="MD_DURABLE_KEY" />
</DIExpression>
<DIExpression isString="true" expr="BUDGET_DIM_XFRU_V.PK_BUDGET_ID" >
<COLUMN_REFERENCE  qualifier1="BUDGET_DIM_XFRU_V" column="PK_BUDGET_ID" />
</DIExpression>
<DIExpression isString="true" expr="$G_FLAG_UPDATE" >
<VARIABLE_REFERENCE name="$G_FLAG_UPDATE" />
</DIExpression>
<DIExpression isString="true" expr="$G_MODDATE_LOC" >
<VARIABLE_REFERENCE name="$G_MODDATE_LOC" />
</DIExpression>
<DIExpression isString="true" expr="$G_MODDATE_LOC" >
<VARIABLE_REFERENCE name="$G_MODDATE_LOC" />
</DIExpression>
<DIExpression isString="true" expr="$G_BATCH_ID" >
<VARIABLE_REFERENCE name="$G_BATCH_ID" />
</DIExpression>
<DIExpression isString="true" expr="$G_PROCESS_ID" >
<VARIABLE_REFERENCE name="$G_PROCESS_ID" />
</DIExpression>
</DIProjection>
<DIFrom>
<DITableSpec name="BUDGET_DIM_XFRU_V" />
</DIFrom>
</DISelect>
<DIAttributes>
<DIAttribute name="distinct_run_as_separate_process" value="no"/>
<DIAttribute name="group_by_run_as_separate_process" value="no"/>
<DIAttribute name="join_run_as_separate_process" value="no"/>
<DIAttribute name="order_by_run_as_separate_process" value="no"/>
<DIAttribute name="run_as_separate_process" value="no"/>
</DIAttributes>
</DIQuery>

<DIDatabaseTableSource typeId="22" datastoreName="DWSTAGING_DS" ownerName="DWSTAGING_ALIAS" tableName="BUDGET_DIM_XFRU_V" >
<DIOutputView name="BUDGET_DIM_XFRU_V"  />
<DIAttributes>
<DIAttribute name="array_fetch_size" value="1000"/>
<DIAttribute name="cache" value="yes"/>
<DIAttribute name="connection_port" value="no"/>
<DIAttribute name="enable_partitioning" value="no"/>
<DIAttribute name="name" value="DWSTAGING_DS"/>
<DIAttribute name="package_size" value="0"/>
<DIAttribute name="reader_is_DB2CDC_table" value="no"/>
<DIAttribute name="reader_overflow_file" value="overflow_file"/>
<DIAttribute name="reader_template_table" value="no"/>
<DIAttribute name="reader_use_overflow_file" value="no"/>
<DIAttribute name="table_weight" value="0"/>
</DIAttributes>
</DIDatabaseTableSource>

<DIDatabaseTableTarget typeID="11" bulkLoader="false" datastoreName="DWSTAGING_DS" ownerName="DWSTAGING_ALIAS" tableName="BUDGET_KEY_LOOKUP" >
<DIInputView name="QRY_UPD"  />
<DIAttributes>
<DIAttribute name="LDRLiveLoad" value="no"/>
<DIAttribute name="Table_Type" value="TABLE"/>
<DIAttribute name="connection_port" value="no"/>
<DIAttribute name="ldr_configuration_enabled" value="yes"/>
<DIAttribute name="ldr_configurations" hasNestedXMLTree ="true">
<LDRConfigurations>
<LDRConfiguration database_type="Microsoft_SQL_Server" database_version="Microsoft SQL Server 2005">
<bulk_ldr_all_rows/>
<bulk_ldr_max_errors/>
<bulk_ldr_rows_per_commit>1000</bulk_ldr_rows_per_commit>
<enable_partitioning>no</enable_partitioning>
<ignore_column_case>yes</ignore_column_case>
<ignore_columns_null>yes</ignore_columns_null>
<ignore_columns_value/>
<loader_auto_correct>yes</loader_auto_correct>
<loader_bulk_load/>
<loader_compare_column>compare_by_name</loader_compare_column>
<loader_delete_map/>
<loader_drop_and_create_table>no</loader_drop_and_create_table>
<loader_insert_map/>
<loader_load_choice>append</loader_load_choice>
<loader_num_parallel_loaders>1</loader_num_parallel_loaders>
<loader_overflow_file>overflow_file</loader_overflow_file>
<loader_post_load1/>
<loader_pre_load1/>
<loader_quote_names>0</loader_quote_names>
<loader_transactional>no</loader_transactional>
<loader_transactional_order>0</loader_transactional_order>
<loader_update_key_columns>no</loader_update_key_columns>
<loader_update_map/>
<loader_use_user_defined_keys>no</loader_use_user_defined_keys>
<loader_xact_size>1000</loader_xact_size>
<mssql_bulk_ldr_mode>append</mssql_bulk_ldr_mode>
<mssql_bulk_ldr_packet_size>0</mssql_bulk_ldr_packet_size>
<overflow_file_format>write_data</overflow_file_format>
<use_overflow_file>no</use_overflow_file>
<use_unicode_varchar>no</use_unicode_varchar>
<sql_text/>
</LDRConfiguration>
</LDRConfigurations>
</DIAttribute>
<DIAttribute name="loader_template_table" value="no"/>
<DIAttribute name="name" value="DWSTAGING_DS"/>
<DIAttribute name="use_unicode_varchar" value="no"/>
</DIAttributes>
</DIDatabaseTableTarget>

</DITransforms>
<DIAttributes>
<DIAttribute name="Cache_type" value="pageable_cache"/>
<DIAttribute name="Parallelism_degree" value="0"/>
<DIAttribute name="allows_both_input_and_output" value="yes"/>
<DIAttribute name="run_once" value="no"/>
<DIAttribute name="use_dataflow_links" value="no"/>
<DIAttribute name="use_datastore_links" value="yes"/>
<DIAttribute name="validation_xform_exists" value="no"/>
<DIAttribute name="validation_xform_stats" value="no"/>
</DIAttributes>
</DIDataflow>
<DIWorkflow name="COSTCATEGORY_LOOKUP_WF" typeId="2" >
<DIVariables>
<DIElement paramType="LOCAL" name="$L_IDENTIFIER" datatype="VARCHAR" size="60" >
</DIElement>
<DIElement paramType="LOCAL" name="$L_EXTRACT_BEGIN_DATE" datatype="DATETIME" >
</DIElement>
<DIElement paramType="LOCAL" name="$L_EXTRACT_END_DATE" datatype="DATETIME" >
</DIElement>
</DIVariables>
<DISteps>
<DICallStep typeId="0"  calledObjectType="Workflow" name="COSTCATEGORY_KEY_LOOKUP_NEW_WF" >
</DICallStep>
</DISteps>
<DIAttributes>
<DIAttribute name="run_once" value="no"/>
<DIAttribute name="unit_of_recovery" value="no"/>
</DIAttributes>
</DIWorkflow>
<DIWorkflow name="COSTCATEGORY_KEY_LOOKUP_NEW_WF" typeId="2" >
<DIProperties>
<DIAttribute name="Description" value="The workflow {TARGET DIMENSION NAME}_LOOKUP_WF is the workflow responsible for loading dimension keys that are generated into the table DIMENSIONKEY_LOOKUP.  The workflow will be composed of the following objects:&#xA;•&#x9;{TARGET DIMENSION NAME}_LOOKUP_TRY – The beginning of the TRY/CATCH block in Data Services&#xA;•&#x9;{TARGET DIMENSION NAME}_LOOKUP_START_SC – The script that calls the custom function that initiates the metadata tracking for the workflow. The script also calls the custom function that creates pseudo surrogate key record. &#xA;•&#x9;{TARGET DIMENSION NAME}_LOOKUP_DEL_DF – The dataflow that is based on the incoming _XFRD load ready target staging tables to query the DIMENSIONKEY_LOOKUP table with the records to delete and Map all rows as Normal for deletion.&#xA;•&#x9;{TARGET DIMENSION NAME}_LOOKUP_UPD_DF – The dataflow that is based on the incoming _XFRU load ready target staging tables to query based on the durable key field and post updates to DIMENSIONKEY_LOOKUP table.&#xA;•&#x9;{TARGET DIMENSION NAME}_LOOKUP_NEW_DF – The dataflow that is based on the incoming _XFRN load ready target staging tables to populate the dimension name, durable and surrogate key fields for new records to the DIMENSIONKEY_LOOKUP table. This table is then used as a lookup table for the fact table.&#xA;•&#x9;{TARGET DIMENSION NAME}_LOOKUP_END_SC – The script that calls the custom function that closes the metadata for the workflow.&#xA;•&#x9;{TARGET DIMENSION NAME}_LOOKUP_CATCH – The end of the TRY/CATCH block.  It contains the script that calls the custom function which writes metadata if there is a failure."/>
</DIProperties>
<DIVariables>
<DIElement paramType="LOCAL" name="$L_IDENTIFIER" datatype="VARCHAR" size="60" >
</DIElement>
<DIElement paramType="LOCAL" name="$L_EXTRACT_BEGIN_DATE" datatype="DATETIME" >
</DIElement>
<DIElement paramType="LOCAL" name="$L_EXTRACT_END_DATE" datatype="DATETIME" >
</DIElement>
</DIVariables>
<DISteps>
<DITryStep typeId="13" >
<DIUIOptions>
<DIAttribute name="AutoLayout" value="yes"/>
<DIAttribute name="ObjectDesc" value="the Try of the Try / Catch Block"/>
<DIAttribute name="ui_display_name" value="COSTCATEGORY_KEY_LOOKUP_NEW_TRY"/>
</DIUIOptions>
<DISteps>
<DIScript>
<DIUIOptions>
<DIAttribute name="ObjectDesc" value="The workflow script object which contains the script to call the custom start workflow function.  This script opens the metadata records that are part of this process"/>
<DIAttribute name="ui_display_name" value="COSTCATEGORY_KEY_LOOKUP_NEW_START_SC"/>
<DIAttribute name="ui_script_text" value="#-- ABC ---&#xA;$L_IDENTIFIER = workflow_name();&#xA;ABC_STARTWF_FN($L_IDENTIFIER, $G_PROCESS_ID);&#xA;&#xA;#------------------&#xA;if( $G_TRACE_MODE = 1)&#xA;Begin&#xA;print(' ');&#xA;print(' ');&#xA;print('The Workfolw ' || workflow_name() || ' is running in Debug mode.');&#xA;print(' ');&#xA;print(' ');&#xA;END&#xA;"/>
</DIUIOptions>
<DIAssignmentStep typeId="12" variable="$L_IDENTIFIER" >
<DIExpression isString="true" expr="workflow_name()" >
<FUNCTION_CALL name="workflow_name"  type="DI" />
</DIExpression>
</DIAssignmentStep>
<DIFunctionCallStep typeId="23" >
<DIExpression isString="true" expr="abc_startwf_fn($L_IDENTIFIER, $G_PROCESS_ID)" >
<FUNCTION_CALL name="abc_startwf_fn"  type="DI" >
<VARIABLE_REFERENCE name="$L_IDENTIFIER" />
<VARIABLE_REFERENCE name="$G_PROCESS_ID" />
</FUNCTION_CALL>
</DIExpression>
</DIFunctionCallStep>
<DIIfStep typeId="2" >
<DIExpression isString="true" expr="($G_TRACE_MODE = 1)" >
<LOGICAL_OP op="EQ">
<VARIABLE_REFERENCE name="$G_TRACE_MODE" />
<CONSTANT value="1" datatype="INT" />
</LOGICAL_OP>
</DIExpression>
<DIIf>
<DIFunctionCallStep typeId="23" >
<DIExpression isString="true" expr="print(' ')" >
<FUNCTION_CALL name="print"  type="DI" >
<CONSTANT value=" " datatype="VARCHAR" size="1" />
</FUNCTION_CALL>
</DIExpression>
</DIFunctionCallStep>
<DIFunctionCallStep typeId="23" >
<DIExpression isString="true" expr="print(' ')" >
<FUNCTION_CALL name="print"  type="DI" >
<CONSTANT value=" " datatype="VARCHAR" size="1" />
</FUNCTION_CALL>
</DIExpression>
</DIFunctionCallStep>
<DIFunctionCallStep typeId="23" >
<DIExpression isString="true" expr="print((('The Workfolw ' || workflow_name()) || ' is running in Debug mode.'))" >
<FUNCTION_CALL name="print"  type="DI" >
<CONCAT>
<CONCAT>
<CONSTANT value="The Workfolw " datatype="VARCHAR" size="13" />
<FUNCTION_CALL name="workflow_name"  type="DI" />
</CONCAT>
<CONSTANT value=" is running in Debug mode." datatype="VARCHAR" size="26" />
</CONCAT>
</FUNCTION_CALL>
</DIExpression>
</DIFunctionCallStep>
<DIFunctionCallStep typeId="23" >
<DIExpression isString="true" expr="print(' ')" >
<FUNCTION_CALL name="print"  type="DI" >
<CONSTANT value=" " datatype="VARCHAR" size="1" />
</FUNCTION_CALL>
</DIExpression>
</DIFunctionCallStep>
<DIFunctionCallStep typeId="23" >
<DIExpression isString="true" expr="print(' ')" >
<FUNCTION_CALL name="print"  type="DI" >
<CONSTANT value=" " datatype="VARCHAR" size="1" />
</FUNCTION_CALL>
</DIExpression>
</DIFunctionCallStep>
</DIIf>
<DIElse>
</DIElse>
</DIIfStep>
</DIScript>
<DICallStep typeId="1"  calledObjectType="Dataflow" name="COSTCATEGORY_KEY_LOOKUP_NEW_DF" >
</DICallStep>
<DIScript>
<DIUIOptions>
<DIAttribute name="ui_display_name" value="COSTCATEGORY_KEY_LOOKUP_NEW_END_SC"/>
<DIAttribute name="ui_script_text" value="#--- ABC ---&#xA;ABC_ENDWF_FN($L_IDENTIFIER, $G_PROCESS_ID);&#xA;&#xA;&#xA;#---&#xA;&#xA;if( $G_TRACE_MODE = 1)&#xA;Begin&#xA;print(' ');&#xA;print(' ');&#xA;print('The Workfolw ' || workflow_name() || ' is completed running in Debug mode.');&#xA;print(' ');&#xA;print(' ');&#xA;END"/>
</DIUIOptions>
<DIFunctionCallStep typeId="23" >
<DIExpression isString="true" expr="abc_endwf_fn($L_IDENTIFIER, $G_PROCESS_ID)" >
<FUNCTION_CALL name="abc_endwf_fn"  type="DI" >
<VARIABLE_REFERENCE name="$L_IDENTIFIER" />
<VARIABLE_REFERENCE name="$G_PROCESS_ID" />
</FUNCTION_CALL>
</DIExpression>
</DIFunctionCallStep>
<DIIfStep typeId="2" >
<DIExpression isString="true" expr="($G_TRACE_MODE = 1)" >
<LOGICAL_OP op="EQ">
<VARIABLE_REFERENCE name="$G_TRACE_MODE" />
<CONSTANT value="1" datatype="INT" />
</LOGICAL_OP>
</DIExpression>
<DIIf>
<DIFunctionCallStep typeId="23" >
<DIExpression isString="true" expr="print(' ')" >
<FUNCTION_CALL name="print"  type="DI" >
<CONSTANT value=" " datatype="VARCHAR" size="1" />
</FUNCTION_CALL>
</DIExpression>
</DIFunctionCallStep>
<DIFunctionCallStep typeId="23" >
<DIExpression isString="true" expr="print(' ')" >
<FUNCTION_CALL name="print"  type="DI" >
<CONSTANT value=" " datatype="VARCHAR" size="1" />
</FUNCTION_CALL>
</DIExpression>
</DIFunctionCallStep>
<DIFunctionCallStep typeId="23" >
<DIExpression isString="true" expr="print((('The Workfolw ' || workflow_name()) || ' is completed running in Debug mode.'))" >
<FUNCTION_CALL name="print"  type="DI" >
<CONCAT>
<CONCAT>
<CONSTANT value="The Workfolw " datatype="VARCHAR" size="13" />
<FUNCTION_CALL name="workflow_name"  type="DI" />
</CONCAT>
<CONSTANT value=" is completed running in Debug mode." datatype="VARCHAR" size="36" />
</CONCAT>
</FUNCTION_CALL>
</DIExpression>
</DIFunctionCallStep>
<DIFunctionCallStep typeId="23" >
<DIExpression isString="true" expr="print(' ')" >
<FUNCTION_CALL name="print"  type="DI" >
<CONSTANT value=" " datatype="VARCHAR" size="1" />
</FUNCTION_CALL>
</DIExpression>
</DIFunctionCallStep>
<DIFunctionCallStep typeId="23" >
<DIExpression isString="true" expr="print(' ')" >
<FUNCTION_CALL name="print"  type="DI" >
<CONSTANT value=" " datatype="VARCHAR" size="1" />
</FUNCTION_CALL>
</DIExpression>
</DIFunctionCallStep>
</DIIf>
<DIElse>
</DIElse>
</DIIfStep>
</DIScript>
</DISteps>
<DICatch typeId="20" errorCode="210101" >
<DIUIOptions>
<DIAttribute name="AutoLayout" value="yes"/>
<DIAttribute name="ui_display_name" value="COSTCATEGORY_KEY_LOOKUP_NEW_CATCH"/>
</DIUIOptions>
<DISteps>
<DIScript>
<DIUIOptions>
<DIAttribute name="ui_display_name" value="COSTCATEGORY_KEY_LOOKUP_FAIL_SC"/>
<DIAttribute name="ui_script_text" value="#ABC - CALL FUNCTION TO TRACK END OF WORKFLOW&#xA;ABC_FAILWF_FN(workflow_name(), $G_PROCESS_ID, 'Error: \[' || error_number() || '\] ' || error_message());&#xA;&#xA;&#xA;#-------------&#xA;if($G_TRACE_MODE=1)&#xA;begin&#xA;print(' ');&#xA;print(' ');&#xA;print('Message from the COSTCATEGORY_LOOKUP_NEW_CATCH Block Script:');&#xA;print('The Workflow ' || workflow_name() || ' has failed to run.');&#xA;print(' ');&#xA;print(' ');&#xA;end"/>
</DIUIOptions>
<DIFunctionCallStep typeId="23" >
<DIExpression isString="true" expr="abc_failwf_fn(workflow_name(), $G_PROCESS_ID, ((('Error: \\[' || error_number()) || '\\] ') || error_message()))" >
<FUNCTION_CALL name="abc_failwf_fn"  type="DI" >
<FUNCTION_CALL name="workflow_name"  type="DI" />
<VARIABLE_REFERENCE name="$G_PROCESS_ID" />
<CONCAT>
<CONCAT>
<CONCAT>
<CONSTANT value="Error: \[" datatype="VARCHAR" size="9" />
<FUNCTION_CALL name="error_number"  type="DI" />
</CONCAT>
<CONSTANT value="\] " datatype="VARCHAR" size="3" />
</CONCAT>
<FUNCTION_CALL name="error_message"  type="DI" />
</CONCAT>
</FUNCTION_CALL>
</DIExpression>
</DIFunctionCallStep>
<DIIfStep typeId="2" >
<DIExpression isString="true" expr="($G_TRACE_MODE = 1)" >
<LOGICAL_OP op="EQ">
<VARIABLE_REFERENCE name="$G_TRACE_MODE" />
<CONSTANT value="1" datatype="INT" />
</LOGICAL_OP>
</DIExpression>
<DIIf>
<DIFunctionCallStep typeId="23" >
<DIExpression isString="true" expr="print(' ')" >
<FUNCTION_CALL name="print"  type="DI" >
<CONSTANT value=" " datatype="VARCHAR" size="1" />
</FUNCTION_CALL>
</DIExpression>
</DIFunctionCallStep>
<DIFunctionCallStep typeId="23" >
<DIExpression isString="true" expr="print(' ')" >
<FUNCTION_CALL name="print"  type="DI" >
<CONSTANT value=" " datatype="VARCHAR" size="1" />
</FUNCTION_CALL>
</DIExpression>
</DIFunctionCallStep>
<DIFunctionCallStep typeId="23" >
<DIExpression isString="true" expr="print('Message from the COSTCATEGORY_LOOKUP_NEW_CATCH Block Script:')" >
<FUNCTION_CALL name="print"  type="DI" >
<CONSTANT value="Message from the COSTCATEGORY_LOOKUP_NEW_CATCH Block Script:" datatype="VARCHAR" size="60" />
</FUNCTION_CALL>
</DIExpression>
</DIFunctionCallStep>
<DIFunctionCallStep typeId="23" >
<DIExpression isString="true" expr="print((('The Workflow ' || workflow_name()) || ' has failed to run.'))" >
<FUNCTION_CALL name="print"  type="DI" >
<CONCAT>
<CONCAT>
<CONSTANT value="The Workflow " datatype="VARCHAR" size="13" />
<FUNCTION_CALL name="workflow_name"  type="DI" />
</CONCAT>
<CONSTANT value=" has failed to run." datatype="VARCHAR" size="19" />
</CONCAT>
</FUNCTION_CALL>
</DIExpression>
</DIFunctionCallStep>
<DIFunctionCallStep typeId="23" >
<DIExpression isString="true" expr="print(' ')" >
<FUNCTION_CALL name="print"  type="DI" >
<CONSTANT value=" " datatype="VARCHAR" size="1" />
</FUNCTION_CALL>
</DIExpression>
</DIFunctionCallStep>
<DIFunctionCallStep typeId="23" >
<DIExpression isString="true" expr="print(' ')" >
<FUNCTION_CALL name="print"  type="DI" >
<CONSTANT value=" " datatype="VARCHAR" size="1" />
</FUNCTION_CALL>
</DIExpression>
</DIFunctionCallStep>
</DIIf>
<DIElse>
</DIElse>
</DIIfStep>
</DIScript>
</DISteps>
</DICatch>
</DITryStep>
</DISteps>
<DIAttributes>
<DIAttribute name="run_once" value="no"/>
<DIAttribute name="unit_of_recovery" value="no"/>
</DIAttributes>
</DIWorkflow>
<DIDataflow name="COSTCATEGORY_KEY_LOOKUP_NEW_DF" typeId="1" >
<DIUIOptions>
<DIAnnotation name="ANNOTATION_0"><DIAttribute name="ObjectDesc" value="Populate the dimension name, durable and surrogate key fields for new records from the XFRN staging table to the {ENTITY}_KEY_LOOKUP table. This table is then used as a lookup table for the fact table "/>
</DIAnnotation><DIAttribute name="AutoLayout" value="yes"/>
</DIUIOptions>
<DIProperties>
<DIAttribute name="Description" value="The dataflow that is based on the incoming _XFRN load ready target staging tables to populate the dimension name, durable and surrogate key fields for new records to the DIMENSIONKEY_LOOKUP table. This table is then used as a lookup table for the fact table."/>
</DIProperties>
<DITransforms>
<DIQuery typeId="122"  >
<DIUIOptions>
<DIAttribute name="ObjectDesc" value="Perform lookup on the ID field to see if it already exists, otherwise it is marked with value of 2. Then based on that value in the Case transform, map as either a New record or New SCD2 (update) record"/>
<DIAttribute name="ui_acta_from_schema_0" value="COSTCATEGORY_DIM_XFRN_V"/>
<DIAttribute name="ui_display_name" value="QRY_LKUP"/>
</DIUIOptions>
<DISchema name="QRY_LKUP" >
<DIElement name="PK_COSTCATEGORY_ID" datatype="DECIMAL" precision="18" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="COSTCATEGORY_DIM_XFRN_V.PK_COSTCATEGORY_ID&#xA;#lookup(DWSTAGING_DS.DWSTAGING_ALIAS.COSTCATEGORY_KEY_LOOKUP, PK_COSTCATEGORY_LOOKUP_ID, 2, 'NO_CACHE', MD_DURABLE_KEY, MD_DURABLE_KEY)"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_DURABLE_KEY" datatype="DECIMAL" precision="18" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="COSTCATEGORY_DIM_XFRN_V.MD_DURABLE_KEY"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_SURROGATE_KEY" datatype="DECIMAL" precision="18" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="COSTCATEGORY_DIM_XFRN_V.PK_COSTCATEGORY_ID"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_CREATEDDATE" datatype="DATETIME" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="COSTCATEGORY_DIM_XFRN_V.MD_CREATEDDATE"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_LASTMODDATE" datatype="DATETIME" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="COSTCATEGORY_DIM_XFRN_V.MD_LASTMODDATE"/>
</DIAttributes>
</DIElement>
</DISchema>
<DISelect>
<DIProjection>
<DIExpression isString="true" expr="COSTCATEGORY_DIM_XFRN_V.PK_COSTCATEGORY_ID" >
<COLUMN_REFERENCE  qualifier1="COSTCATEGORY_DIM_XFRN_V" column="PK_COSTCATEGORY_ID" />
</DIExpression>
<DIExpression isString="true" expr="COSTCATEGORY_DIM_XFRN_V.MD_DURABLE_KEY" >
<COLUMN_REFERENCE  qualifier1="COSTCATEGORY_DIM_XFRN_V" column="MD_DURABLE_KEY" />
</DIExpression>
<DIExpression isString="true" expr="COSTCATEGORY_DIM_XFRN_V.PK_COSTCATEGORY_ID" >
<COLUMN_REFERENCE  qualifier1="COSTCATEGORY_DIM_XFRN_V" column="PK_COSTCATEGORY_ID" />
</DIExpression>
<DIExpression isString="true" expr="COSTCATEGORY_DIM_XFRN_V.MD_CREATEDDATE" >
<COLUMN_REFERENCE  qualifier1="COSTCATEGORY_DIM_XFRN_V" column="MD_CREATEDDATE" />
</DIExpression>
<DIExpression isString="true" expr="COSTCATEGORY_DIM_XFRN_V.MD_LASTMODDATE" >
<COLUMN_REFERENCE  qualifier1="COSTCATEGORY_DIM_XFRN_V" column="MD_LASTMODDATE" />
</DIExpression>
</DIProjection>
<DIFrom>
<DITableSpec name="COSTCATEGORY_DIM_XFRN_V" />
</DIFrom>
</DISelect>
<DIAttributes>
<DIAttribute name="distinct_run_as_separate_process" value="no"/>
<DIAttribute name="group_by_run_as_separate_process" value="no"/>
<DIAttribute name="join_run_as_separate_process" value="no"/>
<DIAttribute name="order_by_run_as_separate_process" value="no"/>
<DIAttribute name="run_as_separate_process" value="no"/>
</DIAttributes>
</DIQuery>

<DIQuery typeId="122"  >
<DIUIOptions>
<DIAttribute name="ObjectDesc" value="Populate the dimension name, durable and surrogate key fields for new records from the XFRN staging table to the DIMENSIONKEY_LOOKUP table."/>
<DIAttribute name="ui_acta_from_schema_0" value="QRY_LKUP"/>
<DIAttribute name="ui_display_name" value="QRY_NEW"/>
</DIUIOptions>
<DISchema name="QRY_NEW" >
<DIElement name="PK_COSTCATEGORY_LOOKUP_ID" datatype="DECIMAL" precision="18" scale="0" key="true" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="greatest(5+gen_row_num(),key_generation('DWSTAGING_DS.DWSTAGING_ALIAS.COSTCATEGORY_KEY_LOOKUP', 'PK_COSTCATEGORY_LOOKUP_ID', 1))&#xA; &#xA;"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_DURABLE_KEY" datatype="DECIMAL" precision="18" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="QRY_LKUP.MD_DURABLE_KEY&#xA; &#xA;"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_SURROGATE_KEY" datatype="DECIMAL" precision="18" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="QRY_LKUP.MD_SURROGATE_KEY&#xA; &#xA;"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_FLAG" datatype="VARCHAR" size="10" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="$G_FLAG_NEW &#xA; &#xA;"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_CREATEDDATE" datatype="DATETIME" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="$G_MODDATE_LOC &#xA; &#xA;"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_LASTMODDATE" datatype="DATETIME" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="null&#xA; &#xA;"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_BATCH_ID" datatype="DECIMAL" precision="19" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="$G_BATCH_ID&#xA; &#xA;"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_PROCESS_ID" datatype="DECIMAL" precision="19" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="$G_PROCESS_ID &#xA; &#xA;"/>
</DIAttributes>
</DIElement>
</DISchema>
<DISelect>
<DIProjection>
<DIExpression isString="true" expr="greatest((5 + gen_row_num()), key_generation(DWSTAGING_DS.DWSTAGING_ALIAS.COSTCATEGORY_KEY_LOOKUP, 'PK_COSTCATEGORY_LOOKUP_ID', 1) )" >
<FUNCTION_CALL name="greatest"  type="DI" >
<ADD>
<CONSTANT value="5" datatype="INT" />
<FUNCTION_CALL name="gen_row_num"  type="DI" />
</ADD>
<FUNCTION_CALL name="key_generation"  type="DI" tableDatastore="DWSTAGING_DS" tableOwner="DWSTAGING_ALIAS" tableName="COSTCATEGORY_KEY_LOOKUP" >
<CONSTANT value="PK_COSTCATEGORY_LOOKUP_ID" datatype="VARCHAR" size="25" />
<CONSTANT value="1" datatype="INT" />
</FUNCTION_CALL>
</FUNCTION_CALL>
</DIExpression>
<DIExpression isString="true" expr="QRY_LKUP.MD_DURABLE_KEY" >
<COLUMN_REFERENCE  qualifier1="QRY_LKUP" column="MD_DURABLE_KEY" />
</DIExpression>
<DIExpression isString="true" expr="QRY_LKUP.MD_SURROGATE_KEY" >
<COLUMN_REFERENCE  qualifier1="QRY_LKUP" column="MD_SURROGATE_KEY" />
</DIExpression>
<DIExpression isString="true" expr="$G_FLAG_NEW" >
<VARIABLE_REFERENCE name="$G_FLAG_NEW" />
</DIExpression>
<DIExpression isString="true" expr="$G_MODDATE_LOC" >
<VARIABLE_REFERENCE name="$G_MODDATE_LOC" />
</DIExpression>
<DIExpression isString="true" expr=" NULL " >
<CONSTANT_NULL /></DIExpression>
<DIExpression isString="true" expr="$G_BATCH_ID" >
<VARIABLE_REFERENCE name="$G_BATCH_ID" />
</DIExpression>
<DIExpression isString="true" expr="$G_PROCESS_ID" >
<VARIABLE_REFERENCE name="$G_PROCESS_ID" />
</DIExpression>
</DIProjection>
<DIFrom>
<DITableSpec name="QRY_LKUP" />
</DIFrom>
</DISelect>
<DIAttributes>
<DIAttribute name="distinct_run_as_separate_process" value="no"/>
<DIAttribute name="group_by_run_as_separate_process" value="no"/>
<DIAttribute name="join_run_as_separate_process" value="no"/>
<DIAttribute name="order_by_run_as_separate_process" value="no"/>
<DIAttribute name="run_as_separate_process" value="no"/>
</DIAttributes>
</DIQuery>

<DIDatabaseTableSource typeId="22" datastoreName="DWSTAGING_DS" ownerName="DWSTAGING_ALIAS" tableName="COSTCATEGORY_DIM_XFRN_V" >
<DIOutputView name="COSTCATEGORY_DIM_XFRN_V"  />
<DIAttributes>
<DIAttribute name="array_fetch_size" value="1000"/>
<DIAttribute name="cache" value="yes"/>
<DIAttribute name="connection_port" value="no"/>
<DIAttribute name="enable_partitioning" value="no"/>
<DIAttribute name="name" value="DWSTAGING_DS"/>
<DIAttribute name="package_size" value="0"/>
<DIAttribute name="reader_is_DB2CDC_table" value="no"/>
<DIAttribute name="reader_overflow_file" value="overflow_file"/>
<DIAttribute name="reader_template_table" value="no"/>
<DIAttribute name="reader_use_overflow_file" value="no"/>
<DIAttribute name="reader_use_trex_transaction" value="no"/>
<DIAttribute name="table_weight" value="0"/>
</DIAttributes>
</DIDatabaseTableSource>

<DIDatabaseTableTarget typeID="11" bulkLoader="false" datastoreName="DWSTAGING_DS" ownerName="DWSTAGING_ALIAS" tableName="COSTCATEGORY_KEY_LOOKUP" >
<DIInputView name="QRY_NEW"  />
<DIAttributes>
<DIAttribute name="LDRLiveLoad" value="no"/>
<DIAttribute name="Table_Type" value="TABLE"/>
<DIAttribute name="connection_port" value="no"/>
<DIAttribute name="ldr_configuration_enabled" value="yes"/>
<DIAttribute name="ldr_configurations" hasNestedXMLTree ="true">
<LDRConfigurations>
<LDRConfiguration database_type="Microsoft_SQL_Server" database_version="Microsoft SQL Server 2005">
<auto_correct_using_merge>yes</auto_correct_using_merge>
<bulk_ldr_all_rows/>
<bulk_ldr_max_errors/>
<bulk_ldr_rows_per_commit>1000</bulk_ldr_rows_per_commit>
<enable_partitioning>no</enable_partitioning>
<ignore_column_case>yes</ignore_column_case>
<ignore_columns_null>no</ignore_columns_null>
<ignore_columns_value/>
<loader_auto_correct>no</loader_auto_correct>
<loader_bulk_load/>
<loader_compare_column>compare_by_name</loader_compare_column>
<loader_delete_map/>
<loader_drop_and_create_table>yes</loader_drop_and_create_table>
<loader_insert_map/>
<loader_load_choice>append</loader_load_choice>
<loader_num_parallel_loaders>1</loader_num_parallel_loaders>
<loader_overflow_file>overflow_file</loader_overflow_file>
<loader_post_load1/>
<loader_pre_load1/>
<loader_quote_names>0</loader_quote_names>
<loader_transactional>no</loader_transactional>
<loader_transactional_order>0</loader_transactional_order>
<loader_update_key_columns>no</loader_update_key_columns>
<loader_update_map/>
<loader_use_user_defined_keys>no</loader_use_user_defined_keys>
<loader_xact_size>1000</loader_xact_size>
<mssql_bulk_ldr_mode>append</mssql_bulk_ldr_mode>
<mssql_bulk_ldr_packet_size>0</mssql_bulk_ldr_packet_size>
<overflow_file_format>write_data</overflow_file_format>
<overriding_substitution_parameter_for_tablename/>
<use_overflow_file>no</use_overflow_file>
<use_unicode_varchar>no</use_unicode_varchar>
<sql_text/>
</LDRConfiguration>
</LDRConfigurations>
</DIAttribute>
<DIAttribute name="loader_template_table" value="no"/>
<DIAttribute name="name" value="DWSTAGING_DS"/>
<DIAttribute name="use_unicode_varchar" value="no"/>
</DIAttributes>
</DIDatabaseTableTarget>

</DITransforms>
<DIAttributes>
<DIAttribute name="Cache_type" value="pageable_cache"/>
<DIAttribute name="Parallelism_degree" value="0"/>
<DIAttribute name="allows_both_input_and_output" value="yes"/>
<DIAttribute name="run_once" value="no"/>
<DIAttribute name="use_dataflow_links" value="no"/>
<DIAttribute name="use_datastore_links" value="yes"/>
<DIAttribute name="validation_xform_exists" value="no"/>
<DIAttribute name="validation_xform_stats" value="no"/>
</DIAttributes>
</DIDataflow>
<DIWorkflow name="MEASURETYPE_LOOKUP_WF" typeId="2" >
<DIVariables>
<DIElement paramType="LOCAL" name="$L_IDENTIFIER" datatype="VARCHAR" size="60" >
</DIElement>
<DIElement paramType="LOCAL" name="$L_EXTRACT_BEGIN_DATE" datatype="DATETIME" >
</DIElement>
<DIElement paramType="LOCAL" name="$L_EXTRACT_END_DATE" datatype="DATETIME" >
</DIElement>
</DIVariables>
<DISteps>
<DICallStep typeId="0"  calledObjectType="Workflow" name="MEASURETYPE_KEY_LOOKUP_NEW_WF" >
</DICallStep>
<DICallStep typeId="0"  calledObjectType="Workflow" name="MEASURETYPE_KEY_LOOKUP_UPD_WF" >
</DICallStep>
</DISteps>
<DIAttributes>
<DIAttribute name="run_once" value="no"/>
<DIAttribute name="unit_of_recovery" value="no"/>
</DIAttributes>
</DIWorkflow>
<DIWorkflow name="MEASURETYPE_KEY_LOOKUP_NEW_WF" typeId="2" >
<DIProperties>
<DIAttribute name="Description" value="The workflow {TARGET DIMENSION NAME}_LOOKUP_WF is the workflow responsible for loading dimension keys that are generated into the table DIMENSIONKEY_LOOKUP.  The workflow will be composed of the following objects:&#xA;•&#x9;{TARGET DIMENSION NAME}_LOOKUP_TRY – The beginning of the TRY/CATCH block in Data Services&#xA;•&#x9;{TARGET DIMENSION NAME}_LOOKUP_START_SC – The script that calls the custom function that initiates the metadata tracking for the workflow. The script also calls the custom function that creates pseudo surrogate key record. &#xA;•&#x9;{TARGET DIMENSION NAME}_LOOKUP_DEL_DF – The dataflow that is based on the incoming _XFRD load ready target staging tables to query the DIMENSIONKEY_LOOKUP table with the records to delete and Map all rows as Normal for deletion.&#xA;•&#x9;{TARGET DIMENSION NAME}_LOOKUP_UPD_DF – The dataflow that is based on the incoming _XFRU load ready target staging tables to query based on the durable key field and post updates to DIMENSIONKEY_LOOKUP table.&#xA;•&#x9;{TARGET DIMENSION NAME}_LOOKUP_NEW_DF – The dataflow that is based on the incoming _XFRN load ready target staging tables to populate the dimension name, durable and surrogate key fields for new records to the DIMENSIONKEY_LOOKUP table. This table is then used as a lookup table for the fact table.&#xA;•&#x9;{TARGET DIMENSION NAME}_LOOKUP_END_SC – The script that calls the custom function that closes the metadata for the workflow.&#xA;•&#x9;{TARGET DIMENSION NAME}_LOOKUP_CATCH – The end of the TRY/CATCH block.  It contains the script that calls the custom function which writes metadata if there is a failure."/>
</DIProperties>
<DIVariables>
<DIElement paramType="LOCAL" name="$L_IDENTIFIER" datatype="VARCHAR" size="60" >
</DIElement>
<DIElement paramType="LOCAL" name="$L_EXTRACT_BEGIN_DATE" datatype="DATETIME" >
</DIElement>
<DIElement paramType="LOCAL" name="$L_EXTRACT_END_DATE" datatype="DATETIME" >
</DIElement>
</DIVariables>
<DISteps>
<DITryStep typeId="13" >
<DIUIOptions>
<DIAttribute name="ObjectDesc" value="the Try of the Try / Catch Block"/>
<DIAttribute name="ui_display_name" value="MEASURETYPE_KEY_LOOKUP_NEW_TRY"/>
</DIUIOptions>
<DISteps>
<DIScript>
<DIUIOptions>
<DIAttribute name="ObjectDesc" value="The workflow script object which contains the script to call the custom start workflow function.  This script opens the metadata records that are part of this process"/>
<DIAttribute name="ui_display_name" value="MEASURETYPE_KEY_LOOKUP_NEW_START_SC"/>
<DIAttribute name="ui_script_text" value="#-- ABC ---&#xA;$L_IDENTIFIER = workflow_name();&#xA;ABC_STARTWF_FN($L_IDENTIFIER, $G_PROCESS_ID);&#xA;&#xA;#------------------&#xA;if( $G_TRACE_MODE = 1)&#xA;Begin&#xA;print(' ');&#xA;print(' ');&#xA;print('The Workfolw ' || workflow_name() || ' is running in Debug mode.');&#xA;print(' ');&#xA;print(' ');&#xA;END&#xA;"/>
</DIUIOptions>
<DIAssignmentStep typeId="12" variable="$L_IDENTIFIER" >
<DIExpression isString="true" expr="workflow_name()" >
<FUNCTION_CALL name="workflow_name"  type="DI" />
</DIExpression>
</DIAssignmentStep>
<DIFunctionCallStep typeId="23" >
<DIExpression isString="true" expr="abc_startwf_fn($L_IDENTIFIER, $G_PROCESS_ID)" >
<FUNCTION_CALL name="abc_startwf_fn"  type="DI" >
<VARIABLE_REFERENCE name="$L_IDENTIFIER" />
<VARIABLE_REFERENCE name="$G_PROCESS_ID" />
</FUNCTION_CALL>
</DIExpression>
</DIFunctionCallStep>
<DIIfStep typeId="2" >
<DIExpression isString="true" expr="($G_TRACE_MODE = 1)" >
<LOGICAL_OP op="EQ">
<VARIABLE_REFERENCE name="$G_TRACE_MODE" />
<CONSTANT value="1" datatype="INT" />
</LOGICAL_OP>
</DIExpression>
<DIIf>
<DIFunctionCallStep typeId="23" >
<DIExpression isString="true" expr="print(' ')" >
<FUNCTION_CALL name="print"  type="DI" >
<CONSTANT value=" " datatype="VARCHAR" size="1" />
</FUNCTION_CALL>
</DIExpression>
</DIFunctionCallStep>
<DIFunctionCallStep typeId="23" >
<DIExpression isString="true" expr="print(' ')" >
<FUNCTION_CALL name="print"  type="DI" >
<CONSTANT value=" " datatype="VARCHAR" size="1" />
</FUNCTION_CALL>
</DIExpression>
</DIFunctionCallStep>
<DIFunctionCallStep typeId="23" >
<DIExpression isString="true" expr="print((('The Workfolw ' || workflow_name()) || ' is running in Debug mode.'))" >
<FUNCTION_CALL name="print"  type="DI" >
<CONCAT>
<CONCAT>
<CONSTANT value="The Workfolw " datatype="VARCHAR" size="13" />
<FUNCTION_CALL name="workflow_name"  type="DI" />
</CONCAT>
<CONSTANT value=" is running in Debug mode." datatype="VARCHAR" size="26" />
</CONCAT>
</FUNCTION_CALL>
</DIExpression>
</DIFunctionCallStep>
<DIFunctionCallStep typeId="23" >
<DIExpression isString="true" expr="print(' ')" >
<FUNCTION_CALL name="print"  type="DI" >
<CONSTANT value=" " datatype="VARCHAR" size="1" />
</FUNCTION_CALL>
</DIExpression>
</DIFunctionCallStep>
<DIFunctionCallStep typeId="23" >
<DIExpression isString="true" expr="print(' ')" >
<FUNCTION_CALL name="print"  type="DI" >
<CONSTANT value=" " datatype="VARCHAR" size="1" />
</FUNCTION_CALL>
</DIExpression>
</DIFunctionCallStep>
</DIIf>
</DIIfStep>
</DIScript>
<DICallStep typeId="1"  calledObjectType="Dataflow" name="MEASURETYPE_KEY_LOOKUP_NEW_DF" >
</DICallStep>
<DIScript>
<DIUIOptions>
<DIAttribute name="ui_display_name" value="MEASURETYPE_KEY_LOOKUP_NEW_END_SC"/>
<DIAttribute name="ui_script_text" value="#--- ABC ---&#xA;ABC_ENDWF_FN($L_IDENTIFIER, $G_PROCESS_ID);&#xA;&#xA;&#xA;#---&#xA;&#xA;if( $G_TRACE_MODE = 1)&#xA;Begin&#xA;print(' ');&#xA;print(' ');&#xA;print('The Workfolw ' || workflow_name() || ' is completed running in Debug mode.');&#xA;print(' ');&#xA;print(' ');&#xA;END"/>
</DIUIOptions>
<DIFunctionCallStep typeId="23" >
<DIExpression isString="true" expr="abc_endwf_fn($L_IDENTIFIER, $G_PROCESS_ID)" >
<FUNCTION_CALL name="abc_endwf_fn"  type="DI" >
<VARIABLE_REFERENCE name="$L_IDENTIFIER" />
<VARIABLE_REFERENCE name="$G_PROCESS_ID" />
</FUNCTION_CALL>
</DIExpression>
</DIFunctionCallStep>
<DIIfStep typeId="2" >
<DIExpression isString="true" expr="($G_TRACE_MODE = 1)" >
<LOGICAL_OP op="EQ">
<VARIABLE_REFERENCE name="$G_TRACE_MODE" />
<CONSTANT value="1" datatype="INT" />
</LOGICAL_OP>
</DIExpression>
<DIIf>
<DIFunctionCallStep typeId="23" >
<DIExpression isString="true" expr="print(' ')" >
<FUNCTION_CALL name="print"  type="DI" >
<CONSTANT value=" " datatype="VARCHAR" size="1" />
</FUNCTION_CALL>
</DIExpression>
</DIFunctionCallStep>
<DIFunctionCallStep typeId="23" >
<DIExpression isString="true" expr="print(' ')" >
<FUNCTION_CALL name="print"  type="DI" >
<CONSTANT value=" " datatype="VARCHAR" size="1" />
</FUNCTION_CALL>
</DIExpression>
</DIFunctionCallStep>
<DIFunctionCallStep typeId="23" >
<DIExpression isString="true" expr="print((('The Workfolw ' || workflow_name()) || ' is completed running in Debug mode.'))" >
<FUNCTION_CALL name="print"  type="DI" >
<CONCAT>
<CONCAT>
<CONSTANT value="The Workfolw " datatype="VARCHAR" size="13" />
<FUNCTION_CALL name="workflow_name"  type="DI" />
</CONCAT>
<CONSTANT value=" is completed running in Debug mode." datatype="VARCHAR" size="36" />
</CONCAT>
</FUNCTION_CALL>
</DIExpression>
</DIFunctionCallStep>
<DIFunctionCallStep typeId="23" >
<DIExpression isString="true" expr="print(' ')" >
<FUNCTION_CALL name="print"  type="DI" >
<CONSTANT value=" " datatype="VARCHAR" size="1" />
</FUNCTION_CALL>
</DIExpression>
</DIFunctionCallStep>
<DIFunctionCallStep typeId="23" >
<DIExpression isString="true" expr="print(' ')" >
<FUNCTION_CALL name="print"  type="DI" >
<CONSTANT value=" " datatype="VARCHAR" size="1" />
</FUNCTION_CALL>
</DIExpression>
</DIFunctionCallStep>
</DIIf>
</DIIfStep>
</DIScript>
</DISteps>
<DICatch typeId="20" errorCode="210101" >
<DIUIOptions>
<DIAttribute name="ui_display_name" value="MEASURETYPE_KEY_LOOKUP_NEW_CATCH"/>
</DIUIOptions>
<DISteps>
<DIScript>
<DIUIOptions>
<DIAttribute name="ui_display_name" value="MEASURETYPE_KEY_LOOKUP_FAIL_SC"/>
<DIAttribute name="ui_script_text" value="#ABC - CALL FUNCTION TO TRACK END OF WORKFLOW&#xA;ABC_FAILWF_FN(workflow_name(), $G_PROCESS_ID, 'Error: \[' || error_number() || '\] ' || error_message());&#xA;&#xA;&#xA;#-------------&#xA;if($G_TRACE_MODE=1)&#xA;begin&#xA;print(' ');&#xA;print(' ');&#xA;print('Message from the PERIOD_LOOKUP_NEW_CATCH Block Script:');&#xA;print('The Workflow ' || workflow_name() || ' has failed to run.');&#xA;print(' ');&#xA;print(' ');&#xA;end"/>
</DIUIOptions>
<DIFunctionCallStep typeId="23" >
<DIExpression isString="true" expr="abc_failwf_fn(workflow_name(), $G_PROCESS_ID, ((('Error: \\[' || error_number()) || '\\] ') || error_message()))" >
<FUNCTION_CALL name="abc_failwf_fn"  type="DI" >
<FUNCTION_CALL name="workflow_name"  type="DI" />
<VARIABLE_REFERENCE name="$G_PROCESS_ID" />
<CONCAT>
<CONCAT>
<CONCAT>
<CONSTANT value="Error: \[" datatype="VARCHAR" size="9" />
<FUNCTION_CALL name="error_number"  type="DI" />
</CONCAT>
<CONSTANT value="\] " datatype="VARCHAR" size="3" />
</CONCAT>
<FUNCTION_CALL name="error_message"  type="DI" />
</CONCAT>
</FUNCTION_CALL>
</DIExpression>
</DIFunctionCallStep>
<DIIfStep typeId="2" >
<DIExpression isString="true" expr="($G_TRACE_MODE = 1)" >
<LOGICAL_OP op="EQ">
<VARIABLE_REFERENCE name="$G_TRACE_MODE" />
<CONSTANT value="1" datatype="INT" />
</LOGICAL_OP>
</DIExpression>
<DIIf>
<DIFunctionCallStep typeId="23" >
<DIExpression isString="true" expr="print(' ')" >
<FUNCTION_CALL name="print"  type="DI" >
<CONSTANT value=" " datatype="VARCHAR" size="1" />
</FUNCTION_CALL>
</DIExpression>
</DIFunctionCallStep>
<DIFunctionCallStep typeId="23" >
<DIExpression isString="true" expr="print(' ')" >
<FUNCTION_CALL name="print"  type="DI" >
<CONSTANT value=" " datatype="VARCHAR" size="1" />
</FUNCTION_CALL>
</DIExpression>
</DIFunctionCallStep>
<DIFunctionCallStep typeId="23" >
<DIExpression isString="true" expr="print('Message from the PERIOD_LOOKUP_NEW_CATCH Block Script:')" >
<FUNCTION_CALL name="print"  type="DI" >
<CONSTANT value="Message from the PERIOD_LOOKUP_NEW_CATCH Block Script:" datatype="VARCHAR" size="54" />
</FUNCTION_CALL>
</DIExpression>
</DIFunctionCallStep>
<DIFunctionCallStep typeId="23" >
<DIExpression isString="true" expr="print((('The Workflow ' || workflow_name()) || ' has failed to run.'))" >
<FUNCTION_CALL name="print"  type="DI" >
<CONCAT>
<CONCAT>
<CONSTANT value="The Workflow " datatype="VARCHAR" size="13" />
<FUNCTION_CALL name="workflow_name"  type="DI" />
</CONCAT>
<CONSTANT value=" has failed to run." datatype="VARCHAR" size="19" />
</CONCAT>
</FUNCTION_CALL>
</DIExpression>
</DIFunctionCallStep>
<DIFunctionCallStep typeId="23" >
<DIExpression isString="true" expr="print(' ')" >
<FUNCTION_CALL name="print"  type="DI" >
<CONSTANT value=" " datatype="VARCHAR" size="1" />
</FUNCTION_CALL>
</DIExpression>
</DIFunctionCallStep>
<DIFunctionCallStep typeId="23" >
<DIExpression isString="true" expr="print(' ')" >
<FUNCTION_CALL name="print"  type="DI" >
<CONSTANT value=" " datatype="VARCHAR" size="1" />
</FUNCTION_CALL>
</DIExpression>
</DIFunctionCallStep>
</DIIf>
</DIIfStep>
</DIScript>
</DISteps>
</DICatch>
</DITryStep>
</DISteps>
<DIAttributes>
<DIAttribute name="run_once" value="no"/>
<DIAttribute name="unit_of_recovery" value="no"/>
</DIAttributes>
</DIWorkflow>
<DIDataflow name="MEASURETYPE_KEY_LOOKUP_NEW_DF" typeId="1" >
<DIUIOptions>
<DIAnnotation name="ANNOTATION_0"><DIAttribute name="ObjectDesc" value="Populate the dimension name, durable and surrogate key fields for new records from the XFRN staging table to the {ENTITY}_KEY_LOOKUP table. This table is then used as a lookup table for the fact table "/>
</DIAnnotation></DIUIOptions>
<DIProperties>
<DIAttribute name="Description" value="The dataflow that is based on the incoming _XFRN load ready target staging tables to populate the dimension name, durable and surrogate key fields for new records to the DIMENSIONKEY_LOOKUP table. This table is then used as a lookup table for the fact table."/>
</DIProperties>
<DITransforms>
<DIQuery typeId="122"  >
<DIUIOptions>
<DIAttribute name="ObjectDesc" value="Perform lookup on the ID field to see if it already exists, otherwise it is marked with value of 2. Then based on that value in the Case transform, map as either a New record or New SCD2 (update) record"/>
<DIAttribute name="ui_acta_from_schema_0" value="MEASURETYPE_DIM_XFRN_V"/>
<DIAttribute name="ui_display_name" value="QRY_LKUP"/>
</DIUIOptions>
<DISchema name="QRY_LKUP" >
<DIElement name="PK_MEASURETYPE_ID" datatype="DECIMAL" precision="18" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="MEASURETYPE_DIM_XFRN_V.PK_MEASURETYPE_ID&#xA;"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_DURABLE_KEY" datatype="DECIMAL" precision="18" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="MEASURETYPE_DIM_XFRN_V.MD_DURABLE_KEY&#xA; &#xA;"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_SURROGATE_KEY" datatype="DECIMAL" precision="18" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="MEASURETYPE_DIM_XFRN_V.PK_MEASURETYPE_ID&#xA;"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_CREATEDDATE" datatype="DATETIME" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="MEASURETYPE_DIM_XFRN_V.MD_CREATEDDATE&#xA; &#xA;"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_LASTMODDATE" datatype="DATETIME" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="MEASURETYPE_DIM_XFRN_V.MD_LASTMODDATE&#xA; &#xA;"/>
</DIAttributes>
</DIElement>
</DISchema>
<DISelect>
<DIProjection>
<DIExpression isString="true" expr="MEASURETYPE_DIM_XFRN_V.PK_MEASURETYPE_ID" >
<COLUMN_REFERENCE  qualifier1="MEASURETYPE_DIM_XFRN_V" column="PK_MEASURETYPE_ID" />
</DIExpression>
<DIExpression isString="true" expr="MEASURETYPE_DIM_XFRN_V.MD_DURABLE_KEY" >
<COLUMN_REFERENCE  qualifier1="MEASURETYPE_DIM_XFRN_V" column="MD_DURABLE_KEY" />
</DIExpression>
<DIExpression isString="true" expr="MEASURETYPE_DIM_XFRN_V.PK_MEASURETYPE_ID" >
<COLUMN_REFERENCE  qualifier1="MEASURETYPE_DIM_XFRN_V" column="PK_MEASURETYPE_ID" />
</DIExpression>
<DIExpression isString="true" expr="MEASURETYPE_DIM_XFRN_V.MD_CREATEDDATE" >
<COLUMN_REFERENCE  qualifier1="MEASURETYPE_DIM_XFRN_V" column="MD_CREATEDDATE" />
</DIExpression>
<DIExpression isString="true" expr="MEASURETYPE_DIM_XFRN_V.MD_LASTMODDATE" >
<COLUMN_REFERENCE  qualifier1="MEASURETYPE_DIM_XFRN_V" column="MD_LASTMODDATE" />
</DIExpression>
</DIProjection>
<DIFrom>
<DITableSpec name="MEASURETYPE_DIM_XFRN_V" />
</DIFrom>
</DISelect>
<DIAttributes>
<DIAttribute name="distinct_run_as_separate_process" value="no"/>
<DIAttribute name="group_by_run_as_separate_process" value="no"/>
<DIAttribute name="join_run_as_separate_process" value="no"/>
<DIAttribute name="order_by_run_as_separate_process" value="no"/>
<DIAttribute name="run_as_separate_process" value="no"/>
</DIAttributes>
</DIQuery>

<DIQuery typeId="122"  >
<DIUIOptions>
<DIAttribute name="ObjectDesc" value="Populate the dimension name, durable and surrogate key fields for new records from the XFRN staging table to the DIMENSIONKEY_LOOKUP table."/>
<DIAttribute name="ui_acta_from_schema_0" value="QRY_LKUP"/>
<DIAttribute name="ui_display_name" value="QRY_NEW"/>
</DIUIOptions>
<DISchema name="QRY_NEW" >
<DIElement name="PK_MEASURETYPE_LOOKUP_ID" datatype="DECIMAL" precision="18" scale="0" key="true" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="greatest(5+gen_row_num(),key_generation('DWSTAGING_DS.DWSTAGING_ALIAS.MEASURETYPE_KEY_LOOKUP', 'PK_MEASURETYPE_LOOKUP_ID', 1))&#xA; &#xA;"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_DURABLE_KEY" datatype="DECIMAL" precision="18" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="QRY_LKUP.MD_DURABLE_KEY&#xA; &#xA;"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_SURROGATE_KEY" datatype="DECIMAL" precision="18" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="QRY_LKUP.PK_MEASURETYPE_ID"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_FLAG" datatype="VARCHAR" size="10" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="$G_FLAG_NEW &#xA; &#xA;"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_CREATEDDATE" datatype="DATETIME" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="$G_MODDATE_LOC &#xA; &#xA;"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_LASTMODDATE" datatype="DATETIME" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="null&#xA; &#xA;"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_BATCH_ID" datatype="DECIMAL" precision="19" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="$G_BATCH_ID&#xA; &#xA;"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_PROCESS_ID" datatype="DECIMAL" precision="19" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="$G_PROCESS_ID &#xA; &#xA;"/>
</DIAttributes>
</DIElement>
</DISchema>
<DISelect>
<DIProjection>
<DIExpression isString="true" expr="greatest((5 + gen_row_num()), key_generation(DWSTAGING_DS.DWSTAGING_ALIAS.MEASURETYPE_KEY_LOOKUP, 'PK_MEASURETYPE_LOOKUP_ID', 1) )" >
<FUNCTION_CALL name="greatest"  type="DI" >
<ADD>
<CONSTANT value="5" datatype="INT" />
<FUNCTION_CALL name="gen_row_num"  type="DI" />
</ADD>
<FUNCTION_CALL name="key_generation"  type="DI" tableDatastore="DWSTAGING_DS" tableOwner="DWSTAGING_ALIAS" tableName="MEASURETYPE_KEY_LOOKUP" >
<CONSTANT value="PK_MEASURETYPE_LOOKUP_ID" datatype="VARCHAR" size="24" />
<CONSTANT value="1" datatype="INT" />
</FUNCTION_CALL>
</FUNCTION_CALL>
</DIExpression>
<DIExpression isString="true" expr="QRY_LKUP.MD_DURABLE_KEY" >
<COLUMN_REFERENCE  qualifier1="QRY_LKUP" column="MD_DURABLE_KEY" />
</DIExpression>
<DIExpression isString="true" expr="QRY_LKUP.PK_MEASURETYPE_ID" >
<COLUMN_REFERENCE  qualifier1="QRY_LKUP" column="PK_MEASURETYPE_ID" />
</DIExpression>
<DIExpression isString="true" expr="$G_FLAG_NEW" >
<VARIABLE_REFERENCE name="$G_FLAG_NEW" />
</DIExpression>
<DIExpression isString="true" expr="$G_MODDATE_LOC" >
<VARIABLE_REFERENCE name="$G_MODDATE_LOC" />
</DIExpression>
<DIExpression isString="true" expr=" NULL " >
<CONSTANT_NULL /></DIExpression>
<DIExpression isString="true" expr="$G_BATCH_ID" >
<VARIABLE_REFERENCE name="$G_BATCH_ID" />
</DIExpression>
<DIExpression isString="true" expr="$G_PROCESS_ID" >
<VARIABLE_REFERENCE name="$G_PROCESS_ID" />
</DIExpression>
</DIProjection>
<DIFrom>
<DITableSpec name="QRY_LKUP" />
</DIFrom>
</DISelect>
<DIAttributes>
<DIAttribute name="distinct_run_as_separate_process" value="no"/>
<DIAttribute name="group_by_run_as_separate_process" value="no"/>
<DIAttribute name="join_run_as_separate_process" value="no"/>
<DIAttribute name="order_by_run_as_separate_process" value="no"/>
<DIAttribute name="run_as_separate_process" value="no"/>
</DIAttributes>
</DIQuery>

<DIDatabaseTableSource typeId="22" datastoreName="DWSTAGING_DS" ownerName="DWSTAGING_ALIAS" tableName="MEASURETYPE_DIM_XFRN_V" >
<DIOutputView name="MEASURETYPE_DIM_XFRN_V"  />
<DIAttributes>
<DIAttribute name="array_fetch_size" value="1000"/>
<DIAttribute name="cache" value="yes"/>
<DIAttribute name="connection_port" value="no"/>
<DIAttribute name="enable_partitioning" value="no"/>
<DIAttribute name="name" value="DWSTAGING_DS"/>
<DIAttribute name="package_size" value="0"/>
<DIAttribute name="reader_is_DB2CDC_table" value="no"/>
<DIAttribute name="reader_overflow_file" value="overflow_file"/>
<DIAttribute name="reader_template_table" value="no"/>
<DIAttribute name="reader_use_overflow_file" value="no"/>
<DIAttribute name="reader_use_trex_transaction" value="no"/>
<DIAttribute name="table_weight" value="0"/>
</DIAttributes>
</DIDatabaseTableSource>

<DIDatabaseTableTarget typeID="11" bulkLoader="false" datastoreName="DWSTAGING_DS" ownerName="DWSTAGING_ALIAS" tableName="MEASURETYPE_KEY_LOOKUP" >
<DIInputView name="QRY_NEW"  />
<DIAttributes>
<DIAttribute name="LDRLiveLoad" value="no"/>
<DIAttribute name="Table_Type" value="TABLE"/>
<DIAttribute name="connection_port" value="no"/>
<DIAttribute name="ldr_configuration_enabled" value="yes"/>
<DIAttribute name="ldr_configurations" hasNestedXMLTree ="true">

<LDRConfigurations>
<LDRConfiguration database_type="Microsoft_SQL_Server" database_version="Microsoft SQL Server 2005">
<auto_correct_using_merge>Yes</auto_correct_using_merge>
<bulk_ldr_all_rows></bulk_ldr_all_rows>
<bulk_ldr_max_errors></bulk_ldr_max_errors>
<bulk_ldr_rows_per_commit></bulk_ldr_rows_per_commit>
<enable_partitioning>no</enable_partitioning>
<ignore_column_case>yes</ignore_column_case>
<ignore_columns_null>no</ignore_columns_null>
<ignore_columns_value></ignore_columns_value>
<loader_auto_correct>yes</loader_auto_correct>
<loader_bulk_load>0</loader_bulk_load>
<loader_compare_column>compare_by_name</loader_compare_column>
<loader_delete_map></loader_delete_map>
<loader_drop_and_create_table>no</loader_drop_and_create_table>
<loader_insert_map></loader_insert_map>
<loader_load_choice>append</loader_load_choice>
<loader_num_parallel_loaders>1</loader_num_parallel_loaders>
<loader_overflow_file>overflow_file</loader_overflow_file>
<loader_post_load1></loader_post_load1>
<loader_pre_load1></loader_pre_load1>
<loader_quote_names>0</loader_quote_names>
<loader_transactional>no</loader_transactional>
<loader_transactional_order>0</loader_transactional_order>
<loader_update_key_columns>no</loader_update_key_columns>
<loader_update_map></loader_update_map>
<loader_use_user_defined_keys>no</loader_use_user_defined_keys>
<loader_xact_size>1000</loader_xact_size>
<mssql_bulk_ldr_mode>append</mssql_bulk_ldr_mode>
<mssql_bulk_ldr_packet_size>4</mssql_bulk_ldr_packet_size>
<overflow_file_format>Write data</overflow_file_format>
<overriding_substitution_parameter_for_tablename></overriding_substitution_parameter_for_tablename>
<use_overflow_file>no</use_overflow_file>
<use_unicode_varchar>no</use_unicode_varchar>
<sql_text></sql_text>
</LDRConfiguration>
</LDRConfigurations>
</DIAttribute>
<DIAttribute name="loader_template_table" value="no"/>
<DIAttribute name="name" value="DWSTAGING_DS"/>
<DIAttribute name="use_unicode_varchar" value="no"/>
</DIAttributes>
</DIDatabaseTableTarget>

</DITransforms>
<DIAttributes>
<DIAttribute name="Cache_type" value="pageable_cache"/>
<DIAttribute name="Parallelism_degree" value="0"/>
<DIAttribute name="allows_both_input_and_output" value="yes"/>
<DIAttribute name="run_once" value="no"/>
<DIAttribute name="use_dataflow_links" value="no"/>
<DIAttribute name="use_datastore_links" value="yes"/>
<DIAttribute name="validation_xform_exists" value="no"/>
<DIAttribute name="validation_xform_stats" value="no"/>
</DIAttributes>
</DIDataflow>
<DIWorkflow name="MEASURETYPE_KEY_LOOKUP_UPD_WF" typeId="2" >
<DIProperties>
<DIAttribute name="Description" value="The workflow {TARGET DIMENSION NAME}_LOOKUP_WF is the workflow responsible for loading dimension keys that are generated into the table DIMENSIONKEY_LOOKUP.  The workflow will be composed of the following objects:&#xA;•&#x9;{TARGET DIMENSION NAME}_LOOKUP_TRY – The beginning of the TRY/CATCH block in Data Services&#xA;•&#x9;{TARGET DIMENSION NAME}_LOOKUP_START_SC – The script that calls the custom function that initiates the metadata tracking for the workflow. The script also calls the custom function that creates pseudo surrogate key record. &#xA;•&#x9;{TARGET DIMENSION NAME}_LOOKUP_DEL_DF – The dataflow that is based on the incoming _XFRD load ready target staging tables to query the DIMENSIONKEY_LOOKUP table with the records to delete and Map all rows as Normal for deletion.&#xA;•&#x9;{TARGET DIMENSION NAME}_LOOKUP_UPD_DF – The dataflow that is based on the incoming _XFRU load ready target staging tables to query based on the durable key field and post updates to DIMENSIONKEY_LOOKUP table.&#xA;•&#x9;{TARGET DIMENSION NAME}_LOOKUP_NEW_DF – The dataflow that is based on the incoming _XFRN load ready target staging tables to populate the dimension name, durable and surrogate key fields for new records to the DIMENSIONKEY_LOOKUP table. This table is then used as a lookup table for the fact table.&#xA;•&#x9;{TARGET DIMENSION NAME}_LOOKUP_END_SC – The script that calls the custom function that closes the metadata for the workflow.&#xA;•&#x9;{TARGET DIMENSION NAME}_LOOKUP_CATCH – The end of the TRY/CATCH block.  It contains the script that calls the custom function which writes metadata if there is a failure."/>
</DIProperties>
<DIVariables>
<DIElement paramType="LOCAL" name="$L_IDENTIFIER" datatype="VARCHAR" size="100" >
</DIElement>
<DIElement paramType="LOCAL" name="$L_EXTRACT_BEGIN_DATE" datatype="DATETIME" >
</DIElement>
<DIElement paramType="LOCAL" name="$L_EXTRACT_END_DATE" datatype="DATETIME" >
</DIElement>
</DIVariables>
<DISteps>
<DITryStep typeId="13" >
<DIUIOptions>
<DIAttribute name="ObjectDesc" value="the Try of the Try / Catch Block"/>
<DIAttribute name="ui_display_name" value="MEASURETYPE_PERSON_KEY_LOOKUP_UPD_TRY"/>
</DIUIOptions>
<DISteps>
<DIScript>
<DIUIOptions>
<DIAttribute name="ObjectDesc" value="The workflow script object which contains the script to call the custom start workflow function.  This script opens the metadata records that are part of this process"/>
<DIAttribute name="ui_display_name" value="MEASURETYPE_KEY_LOOKUP_UPD_START_SC"/>
<DIAttribute name="ui_script_text" value="#-- ABC ---&#xA;$L_IDENTIFIER = workflow_name();&#xA;ABC_STARTWF_FN($L_IDENTIFIER, $G_PROCESS_ID);&#xA;&#xA;#----&#xA;if( $G_TRACE_MODE = 1)&#xA;Begin&#xA;print(' ');&#xA;print(' ');&#xA;print('The Workfolw ' || workflow_name() || ' is running in Debug mode.');&#xA;print(' ');&#xA;print(' ');&#xA;END&#xA;"/>
</DIUIOptions>
<DIAssignmentStep typeId="12" variable="$L_IDENTIFIER" >
<DIExpression isString="true" expr="workflow_name()" >
<FUNCTION_CALL name="workflow_name"  type="DI" />
</DIExpression>
</DIAssignmentStep>
<DIFunctionCallStep typeId="23" >
<DIExpression isString="true" expr="abc_startwf_fn($L_IDENTIFIER, $G_PROCESS_ID)" >
<FUNCTION_CALL name="abc_startwf_fn"  type="DI" >
<VARIABLE_REFERENCE name="$L_IDENTIFIER" />
<VARIABLE_REFERENCE name="$G_PROCESS_ID" />
</FUNCTION_CALL>
</DIExpression>
</DIFunctionCallStep>
<DIIfStep typeId="2" >
<DIExpression isString="true" expr="($G_TRACE_MODE = 1)" >
<LOGICAL_OP op="EQ">
<VARIABLE_REFERENCE name="$G_TRACE_MODE" />
<CONSTANT value="1" datatype="INT" />
</LOGICAL_OP>
</DIExpression>
<DIIf>
<DIFunctionCallStep typeId="23" >
<DIExpression isString="true" expr="print(' ')" >
<FUNCTION_CALL name="print"  type="DI" >
<CONSTANT value=" " datatype="VARCHAR" size="1" />
</FUNCTION_CALL>
</DIExpression>
</DIFunctionCallStep>
<DIFunctionCallStep typeId="23" >
<DIExpression isString="true" expr="print(' ')" >
<FUNCTION_CALL name="print"  type="DI" >
<CONSTANT value=" " datatype="VARCHAR" size="1" />
</FUNCTION_CALL>
</DIExpression>
</DIFunctionCallStep>
<DIFunctionCallStep typeId="23" >
<DIExpression isString="true" expr="print((('The Workfolw ' || workflow_name()) || ' is running in Debug mode.'))" >
<FUNCTION_CALL name="print"  type="DI" >
<CONCAT>
<CONCAT>
<CONSTANT value="The Workfolw " datatype="VARCHAR" size="13" />
<FUNCTION_CALL name="workflow_name"  type="DI" />
</CONCAT>
<CONSTANT value=" is running in Debug mode." datatype="VARCHAR" size="26" />
</CONCAT>
</FUNCTION_CALL>
</DIExpression>
</DIFunctionCallStep>
<DIFunctionCallStep typeId="23" >
<DIExpression isString="true" expr="print(' ')" >
<FUNCTION_CALL name="print"  type="DI" >
<CONSTANT value=" " datatype="VARCHAR" size="1" />
</FUNCTION_CALL>
</DIExpression>
</DIFunctionCallStep>
<DIFunctionCallStep typeId="23" >
<DIExpression isString="true" expr="print(' ')" >
<FUNCTION_CALL name="print"  type="DI" >
<CONSTANT value=" " datatype="VARCHAR" size="1" />
</FUNCTION_CALL>
</DIExpression>
</DIFunctionCallStep>
</DIIf>
</DIIfStep>
</DIScript>
<DICallStep typeId="1"  calledObjectType="Dataflow" name="MEASURETYPE_KEY_LOOKUP_UPD_DF" >
</DICallStep>
<DIScript>
<DIUIOptions>
<DIAttribute name="ui_display_name" value="MEASURETYPE_KEY_LOOKUP_UPD_END_SC"/>
<DIAttribute name="ui_script_text" value="#--- ABC ---&#xA;ABC_ENDWF_FN($L_IDENTIFIER, $G_PROCESS_ID);&#xA;&#xA;#----&#xA;if( $G_DEBUG_MODE = 1)&#xA;Begin&#xA;print(' ');&#xA;print(' ');&#xA;print('The Workfolw ' || workflow_name() || ' is completed running in Debug mode.');&#xA;print(' ');&#xA;print(' ');&#xA;END"/>
</DIUIOptions>
<DIFunctionCallStep typeId="23" >
<DIExpression isString="true" expr="abc_endwf_fn($L_IDENTIFIER, $G_PROCESS_ID)" >
<FUNCTION_CALL name="abc_endwf_fn"  type="DI" >
<VARIABLE_REFERENCE name="$L_IDENTIFIER" />
<VARIABLE_REFERENCE name="$G_PROCESS_ID" />
</FUNCTION_CALL>
</DIExpression>
</DIFunctionCallStep>
<DIIfStep typeId="2" >
<DIExpression isString="true" expr="($G_DEBUG_MODE = 1)" >
<LOGICAL_OP op="EQ">
<VARIABLE_REFERENCE name="$G_DEBUG_MODE" />
<CONSTANT value="1" datatype="INT" />
</LOGICAL_OP>
</DIExpression>
<DIIf>
<DIFunctionCallStep typeId="23" >
<DIExpression isString="true" expr="print(' ')" >
<FUNCTION_CALL name="print"  type="DI" >
<CONSTANT value=" " datatype="VARCHAR" size="1" />
</FUNCTION_CALL>
</DIExpression>
</DIFunctionCallStep>
<DIFunctionCallStep typeId="23" >
<DIExpression isString="true" expr="print(' ')" >
<FUNCTION_CALL name="print"  type="DI" >
<CONSTANT value=" " datatype="VARCHAR" size="1" />
</FUNCTION_CALL>
</DIExpression>
</DIFunctionCallStep>
<DIFunctionCallStep typeId="23" >
<DIExpression isString="true" expr="print((('The Workfolw ' || workflow_name()) || ' is completed running in Debug mode.'))" >
<FUNCTION_CALL name="print"  type="DI" >
<CONCAT>
<CONCAT>
<CONSTANT value="The Workfolw " datatype="VARCHAR" size="13" />
<FUNCTION_CALL name="workflow_name"  type="DI" />
</CONCAT>
<CONSTANT value=" is completed running in Debug mode." datatype="VARCHAR" size="36" />
</CONCAT>
</FUNCTION_CALL>
</DIExpression>
</DIFunctionCallStep>
<DIFunctionCallStep typeId="23" >
<DIExpression isString="true" expr="print(' ')" >
<FUNCTION_CALL name="print"  type="DI" >
<CONSTANT value=" " datatype="VARCHAR" size="1" />
</FUNCTION_CALL>
</DIExpression>
</DIFunctionCallStep>
<DIFunctionCallStep typeId="23" >
<DIExpression isString="true" expr="print(' ')" >
<FUNCTION_CALL name="print"  type="DI" >
<CONSTANT value=" " datatype="VARCHAR" size="1" />
</FUNCTION_CALL>
</DIExpression>
</DIFunctionCallStep>
</DIIf>
</DIIfStep>
</DIScript>
</DISteps>
<DICatch typeId="20" errorCode="210101" >
<DIUIOptions>
<DIAttribute name="ui_display_name" value="MEASURETYPE_KEY_LOOKUP_UPD_CATCH"/>
</DIUIOptions>
<DISteps>
<DIScript>
<DIUIOptions>
<DIAttribute name="ui_display_name" value="MEASURETYPE_KEY_LOOKUP_FAIL_SC"/>
<DIAttribute name="ui_script_text" value="#ABC - CALL FUNCTION TO TRACK END OF WORKFLOW&#xA;ABC_FAILWF_FN(workflow_name(), $G_PROCESS_ID, 'Error: \[' || error_number() || '\] ' || error_message());&#xA;&#xA;#----&#xA;if($G_TRACE_MODE=1)&#xA;begin&#xA;print(' ');&#xA;print(' ');&#xA;print('Message from the PERIOD_LOOKUP_UPD_CATCH Block Script:');&#xA;print('The Workflow ' || workflow_name() || ' has failed to run.');&#xA;print(' ');&#xA;print(' ');&#xA;end"/>
</DIUIOptions>
<DIFunctionCallStep typeId="23" >
<DIExpression isString="true" expr="abc_failwf_fn(workflow_name(), $G_PROCESS_ID, ((('Error: \\[' || error_number()) || '\\] ') || error_message()))" >
<FUNCTION_CALL name="abc_failwf_fn"  type="DI" >
<FUNCTION_CALL name="workflow_name"  type="DI" />
<VARIABLE_REFERENCE name="$G_PROCESS_ID" />
<CONCAT>
<CONCAT>
<CONCAT>
<CONSTANT value="Error: \[" datatype="VARCHAR" size="9" />
<FUNCTION_CALL name="error_number"  type="DI" />
</CONCAT>
<CONSTANT value="\] " datatype="VARCHAR" size="3" />
</CONCAT>
<FUNCTION_CALL name="error_message"  type="DI" />
</CONCAT>
</FUNCTION_CALL>
</DIExpression>
</DIFunctionCallStep>
<DIIfStep typeId="2" >
<DIExpression isString="true" expr="($G_TRACE_MODE = 1)" >
<LOGICAL_OP op="EQ">
<VARIABLE_REFERENCE name="$G_TRACE_MODE" />
<CONSTANT value="1" datatype="INT" />
</LOGICAL_OP>
</DIExpression>
<DIIf>
<DIFunctionCallStep typeId="23" >
<DIExpression isString="true" expr="print(' ')" >
<FUNCTION_CALL name="print"  type="DI" >
<CONSTANT value=" " datatype="VARCHAR" size="1" />
</FUNCTION_CALL>
</DIExpression>
</DIFunctionCallStep>
<DIFunctionCallStep typeId="23" >
<DIExpression isString="true" expr="print(' ')" >
<FUNCTION_CALL name="print"  type="DI" >
<CONSTANT value=" " datatype="VARCHAR" size="1" />
</FUNCTION_CALL>
</DIExpression>
</DIFunctionCallStep>
<DIFunctionCallStep typeId="23" >
<DIExpression isString="true" expr="print('Message from the PERIOD_LOOKUP_UPD_CATCH Block Script:')" >
<FUNCTION_CALL name="print"  type="DI" >
<CONSTANT value="Message from the PERIOD_LOOKUP_UPD_CATCH Block Script:" datatype="VARCHAR" size="54" />
</FUNCTION_CALL>
</DIExpression>
</DIFunctionCallStep>
<DIFunctionCallStep typeId="23" >
<DIExpression isString="true" expr="print((('The Workflow ' || workflow_name()) || ' has failed to run.'))" >
<FUNCTION_CALL name="print"  type="DI" >
<CONCAT>
<CONCAT>
<CONSTANT value="The Workflow " datatype="VARCHAR" size="13" />
<FUNCTION_CALL name="workflow_name"  type="DI" />
</CONCAT>
<CONSTANT value=" has failed to run." datatype="VARCHAR" size="19" />
</CONCAT>
</FUNCTION_CALL>
</DIExpression>
</DIFunctionCallStep>
<DIFunctionCallStep typeId="23" >
<DIExpression isString="true" expr="print(' ')" >
<FUNCTION_CALL name="print"  type="DI" >
<CONSTANT value=" " datatype="VARCHAR" size="1" />
</FUNCTION_CALL>
</DIExpression>
</DIFunctionCallStep>
<DIFunctionCallStep typeId="23" >
<DIExpression isString="true" expr="print(' ')" >
<FUNCTION_CALL name="print"  type="DI" >
<CONSTANT value=" " datatype="VARCHAR" size="1" />
</FUNCTION_CALL>
</DIExpression>
</DIFunctionCallStep>
</DIIf>
</DIIfStep>
</DIScript>
</DISteps>
</DICatch>
</DITryStep>
</DISteps>
<DIAttributes>
<DIAttribute name="run_once" value="no"/>
<DIAttribute name="unit_of_recovery" value="no"/>
</DIAttributes>
</DIWorkflow>
<DIDataflow name="MEASURETYPE_KEY_LOOKUP_UPD_DF" typeId="1" >
<DIProperties>
<DIAttribute name="Description" value="The dataflow that is based on the incoming _XFRU load ready target staging tables to query based on the durable key field and post updates to DIMENSIONKEY_LOOKUP table"/>
</DIProperties>
<DITransforms>
<DIQuery typeId="122"  >
<DIUIOptions>
<DIAttribute name="ObjectDesc" value="Post updates to DIMENSIONKEY_LOOKUP table based on durable key field."/>
<DIAttribute name="ui_acta_from_schema_0" value="MEASURETYPE_DIM_XFRU_V"/>
<DIAttribute name="ui_display_name" value="QRY_UPD"/>
</DIUIOptions>
<DISchema name="QRY_UPD" >
<DIElement name="PK_MEASURETYPE_LOOKUP_ID" datatype="INT" key="true" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="lookup(DWSTAGING_DS.DWSTAGING_ALIAS.MEASURETYPE_KEY_LOOKUP, PK_MEASURETYPE_LOOKUP_ID, '-2', 'NO_CACHE', MD_DURABLE_KEY, MD_DURABLE_KEY, MD_SURROGATE_KEY, PK_MEASURETYPE_ID) &#xA; &#xA;"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_DURABLE_KEY" datatype="DECIMAL" precision="18" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="MEASURETYPE_DIM_XFRU_V.MD_DURABLE_KEY&#xA; &#xA;"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_SURROGATE_KEY" datatype="DECIMAL" precision="18" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="MEASURETYPE_DIM_XFRU_V.PK_MEASURETYPE_ID&#xA; &#xA;"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_FLAG" datatype="VARCHAR" size="10" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="$G_FLAG_UPDATE &#xA; &#xA;"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_CREATEDDATE" datatype="DATETIME" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="$G_MODDATE_LOC &#xA; &#xA;"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_LASTMODDATE" datatype="DATETIME" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="$G_MODDATE_LOC &#xA; &#xA;"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_BATCH_ID" datatype="DECIMAL" precision="19" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="$G_BATCH_ID&#xA; &#xA;"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_PROCESS_ID" datatype="DECIMAL" precision="19" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="$G_PROCESS_ID &#xA; &#xA;"/>
</DIAttributes>
</DIElement>
</DISchema>
<DISelect>
<DIProjection>
<DIExpression isString="true" expr="lookup(DWSTAGING_DS.DWSTAGING_ALIAS.MEASURETYPE_KEY_LOOKUP, PK_MEASURETYPE_LOOKUP_ID, '-2', 'NO_CACHE', MD_DURABLE_KEY, MD_DURABLE_KEY, MD_SURROGATE_KEY, PK_MEASURETYPE_ID) " >
<FUNCTION_CALL name="lookup"  type="DI" tableDatastore="DWSTAGING_DS" tableOwner="DWSTAGING_ALIAS" tableName="MEASURETYPE_KEY_LOOKUP" >
<COLUMN_REFERENCE  column="PK_MEASURETYPE_LOOKUP_ID" />
<CONSTANT value="-2" datatype="VARCHAR" size="2" />
<CONSTANT value="NO_CACHE" datatype="VARCHAR" size="8" />
<COLUMN_REFERENCE  column="MD_DURABLE_KEY" />
<COLUMN_REFERENCE  column="MD_DURABLE_KEY" />
<COLUMN_REFERENCE  column="MD_SURROGATE_KEY" />
<COLUMN_REFERENCE  column="PK_MEASURETYPE_ID" />
</FUNCTION_CALL>
</DIExpression>
<DIExpression isString="true" expr="MEASURETYPE_DIM_XFRU_V.MD_DURABLE_KEY" >
<COLUMN_REFERENCE  qualifier1="MEASURETYPE_DIM_XFRU_V" column="MD_DURABLE_KEY" />
</DIExpression>
<DIExpression isString="true" expr="MEASURETYPE_DIM_XFRU_V.PK_MEASURETYPE_ID" >
<COLUMN_REFERENCE  qualifier1="MEASURETYPE_DIM_XFRU_V" column="PK_MEASURETYPE_ID" />
</DIExpression>
<DIExpression isString="true" expr="$G_FLAG_UPDATE" >
<VARIABLE_REFERENCE name="$G_FLAG_UPDATE" />
</DIExpression>
<DIExpression isString="true" expr="$G_MODDATE_LOC" >
<VARIABLE_REFERENCE name="$G_MODDATE_LOC" />
</DIExpression>
<DIExpression isString="true" expr="$G_MODDATE_LOC" >
<VARIABLE_REFERENCE name="$G_MODDATE_LOC" />
</DIExpression>
<DIExpression isString="true" expr="$G_BATCH_ID" >
<VARIABLE_REFERENCE name="$G_BATCH_ID" />
</DIExpression>
<DIExpression isString="true" expr="$G_PROCESS_ID" >
<VARIABLE_REFERENCE name="$G_PROCESS_ID" />
</DIExpression>
</DIProjection>
<DIFrom>
<DITableSpec name="MEASURETYPE_DIM_XFRU_V" />
</DIFrom>
</DISelect>
<DIAttributes>
<DIAttribute name="distinct_run_as_separate_process" value="no"/>
<DIAttribute name="group_by_run_as_separate_process" value="no"/>
<DIAttribute name="join_run_as_separate_process" value="no"/>
<DIAttribute name="order_by_run_as_separate_process" value="no"/>
<DIAttribute name="run_as_separate_process" value="no"/>
</DIAttributes>
</DIQuery>

<DIDatabaseTableSource typeId="22" datastoreName="DWSTAGING_DS" ownerName="DWSTAGING_ALIAS" tableName="MEASURETYPE_DIM_XFRU_V" >
<DIOutputView name="MEASURETYPE_DIM_XFRU_V"  />
<DIAttributes>
<DIAttribute name="array_fetch_size" value="1000"/>
<DIAttribute name="cache" value="yes"/>
<DIAttribute name="connection_port" value="no"/>
<DIAttribute name="enable_partitioning" value="no"/>
<DIAttribute name="name" value="DWSTAGING_DS"/>
<DIAttribute name="package_size" value="0"/>
<DIAttribute name="reader_is_DB2CDC_table" value="no"/>
<DIAttribute name="reader_overflow_file" value="overflow_file"/>
<DIAttribute name="reader_template_table" value="no"/>
<DIAttribute name="reader_use_overflow_file" value="no"/>
<DIAttribute name="reader_use_trex_transaction" value="no"/>
<DIAttribute name="table_weight" value="0"/>
</DIAttributes>
</DIDatabaseTableSource>

<DIDatabaseTableTarget typeID="11" bulkLoader="false" datastoreName="DWSTAGING_DS" ownerName="DWSTAGING_ALIAS" tableName="MEASURETYPE_KEY_LOOKUP" >
<DIInputView name="QRY_UPD"  />
<DIAttributes>
<DIAttribute name="LDRLiveLoad" value="no"/>
<DIAttribute name="Table_Type" value="TABLE"/>
<DIAttribute name="connection_port" value="no"/>
<DIAttribute name="ldr_configuration_enabled" value="yes"/>
<DIAttribute name="ldr_configurations" hasNestedXMLTree ="true">

<LDRConfigurations>
<LDRConfiguration database_type="Microsoft_SQL_Server" database_version="Microsoft SQL Server 2005">
<auto_correct_using_merge>Yes</auto_correct_using_merge>
<bulk_ldr_all_rows></bulk_ldr_all_rows>
<bulk_ldr_max_errors></bulk_ldr_max_errors>
<bulk_ldr_rows_per_commit>1000</bulk_ldr_rows_per_commit>
<enable_partitioning>no</enable_partitioning>
<ignore_column_case>yes</ignore_column_case>
<ignore_columns_null>yes</ignore_columns_null>
<ignore_columns_value></ignore_columns_value>
<loader_auto_correct>yes</loader_auto_correct>
<loader_bulk_load></loader_bulk_load>
<loader_compare_column>compare_by_name</loader_compare_column>
<loader_delete_map></loader_delete_map>
<loader_drop_and_create_table>no</loader_drop_and_create_table>
<loader_insert_map></loader_insert_map>
<loader_load_choice>append</loader_load_choice>
<loader_num_parallel_loaders>1</loader_num_parallel_loaders>
<loader_overflow_file>overflow_file</loader_overflow_file>
<loader_post_load1></loader_post_load1>
<loader_pre_load1></loader_pre_load1>
<loader_quote_names>0</loader_quote_names>
<loader_transactional>no</loader_transactional>
<loader_transactional_order>0</loader_transactional_order>
<loader_update_key_columns>no</loader_update_key_columns>
<loader_update_map></loader_update_map>
<loader_use_user_defined_keys>no</loader_use_user_defined_keys>
<loader_xact_size>1000</loader_xact_size>
<mssql_bulk_ldr_mode>append</mssql_bulk_ldr_mode>
<mssql_bulk_ldr_packet_size>0</mssql_bulk_ldr_packet_size>
<overflow_file_format>Write data</overflow_file_format>
<overriding_substitution_parameter_for_tablename></overriding_substitution_parameter_for_tablename>
<use_overflow_file>no</use_overflow_file>
<use_unicode_varchar>no</use_unicode_varchar>
<sql_text></sql_text>
</LDRConfiguration>
</LDRConfigurations>
</DIAttribute>
<DIAttribute name="loader_template_table" value="no"/>
<DIAttribute name="name" value="DWSTAGING_DS"/>
<DIAttribute name="use_unicode_varchar" value="no"/>
</DIAttributes>
</DIDatabaseTableTarget>

</DITransforms>
<DIAttributes>
<DIAttribute name="Cache_type" value="pageable_cache"/>
<DIAttribute name="Parallelism_degree" value="0"/>
<DIAttribute name="allows_both_input_and_output" value="yes"/>
<DIAttribute name="run_once" value="no"/>
<DIAttribute name="use_dataflow_links" value="no"/>
<DIAttribute name="use_datastore_links" value="yes"/>
<DIAttribute name="validation_xform_exists" value="no"/>
<DIAttribute name="validation_xform_stats" value="no"/>
</DIAttributes>
</DIDataflow>
<DIWorkflow name="EXTERN_PROGRAM_LOOKUP_WF" typeId="2" >
<DIVariables>
<DIElement paramType="LOCAL" name="$L_IDENTIFIER" datatype="VARCHAR" size="100" >
</DIElement>
</DIVariables>
<DISteps>
</DISteps>
<DIAttributes>
<DIAttribute name="run_once" value="no"/>
<DIAttribute name="unit_of_recovery" value="no"/>
</DIAttributes>
</DIWorkflow>
<DIWorkflow name="STATUS_LOOKUP_WF" typeId="2" >
<DIVariables>
<DIElement paramType="LOCAL" name="$L_IDENTIFIER" datatype="VARCHAR" size="60" >
</DIElement>
<DIElement paramType="LOCAL" name="$L_EXTRACT_BEGIN_DATE" datatype="DATETIME" >
</DIElement>
<DIElement paramType="LOCAL" name="$L_EXTRACT_END_DATE" datatype="DATETIME" >
</DIElement>
</DIVariables>
<DISteps>
<DICallStep typeId="0"  calledObjectType="Workflow" name="STATUS_KEY_LOOKUP_NEW_WF" >
</DICallStep>
<DICallStep typeId="0"  calledObjectType="Workflow" name="STATUS_KEY_LOOKUP_UPD_WF" >
</DICallStep>
</DISteps>
<DIAttributes>
<DIAttribute name="run_once" value="no"/>
<DIAttribute name="unit_of_recovery" value="no"/>
</DIAttributes>
</DIWorkflow>
<DIWorkflow name="STATUS_KEY_LOOKUP_NEW_WF" typeId="2" >
<DIProperties>
<DIAttribute name="Description" value="The workflow {TARGET DIMENSION NAME}_LOOKUP_WF is the workflow responsible for loading dimension keys that are generated into the table DIMENSIONKEY_LOOKUP.  The workflow will be composed of the following objects:&#xA;•&#x9;{TARGET DIMENSION NAME}_LOOKUP_TRY – The beginning of the TRY/CATCH block in Data Services&#xA;•&#x9;{TARGET DIMENSION NAME}_LOOKUP_START_SC – The script that calls the custom function that initiates the metadata tracking for the workflow. The script also calls the custom function that creates pseudo surrogate key record. &#xA;•&#x9;{TARGET DIMENSION NAME}_LOOKUP_DEL_DF – The dataflow that is based on the incoming _XFRD load ready target staging tables to query the DIMENSIONKEY_LOOKUP table with the records to delete and Map all rows as Normal for deletion.&#xA;•&#x9;{TARGET DIMENSION NAME}_LOOKUP_UPD_DF – The dataflow that is based on the incoming _XFRU load ready target staging tables to query based on the durable key field and post updates to DIMENSIONKEY_LOOKUP table.&#xA;•&#x9;{TARGET DIMENSION NAME}_LOOKUP_NEW_DF – The dataflow that is based on the incoming _XFRN load ready target staging tables to populate the dimension name, durable and surrogate key fields for new records to the DIMENSIONKEY_LOOKUP table. This table is then used as a lookup table for the fact table.&#xA;•&#x9;{TARGET DIMENSION NAME}_LOOKUP_END_SC – The script that calls the custom function that closes the metadata for the workflow.&#xA;•&#x9;{TARGET DIMENSION NAME}_LOOKUP_CATCH – The end of the TRY/CATCH block.  It contains the script that calls the custom function which writes metadata if there is a failure."/>
</DIProperties>
<DIVariables>
<DIElement paramType="LOCAL" name="$L_IDENTIFIER" datatype="VARCHAR" size="60" >
</DIElement>
<DIElement paramType="LOCAL" name="$L_EXTRACT_BEGIN_DATE" datatype="DATETIME" >
</DIElement>
<DIElement paramType="LOCAL" name="$L_EXTRACT_END_DATE" datatype="DATETIME" >
</DIElement>
</DIVariables>
<DISteps>
<DITryStep typeId="13" >
<DIUIOptions>
<DIAttribute name="ObjectDesc" value="the Try of the Try / Catch Block"/>
<DIAttribute name="ui_display_name" value="STATUS_KEY_LOOKUP_NEW_TRY"/>
</DIUIOptions>
<DISteps>
<DIScript>
<DIUIOptions>
<DIAttribute name="ObjectDesc" value="The workflow script object which contains the script to call the custom start workflow function.  This script opens the metadata records that are part of this process"/>
<DIAttribute name="ui_display_name" value="STATUS_KEY_LOOKUP_NEW_START_SC"/>
<DIAttribute name="ui_script_text" value="#-- ABC ---&#xA;$L_IDENTIFIER = workflow_name();&#xA;ABC_STARTWF_FN($L_IDENTIFIER, $G_PROCESS_ID);&#xA;&#xA;#------------------&#xA;if( $G_TRACE_MODE = 1)&#xA;Begin&#xA;print(' ');&#xA;print(' ');&#xA;print('The Workfolw ' || workflow_name() || ' is running in Debug mode.');&#xA;print(' ');&#xA;print(' ');&#xA;END&#xA;"/>
</DIUIOptions>
<DIAssignmentStep typeId="12" variable="$L_IDENTIFIER" >
<DIExpression isString="true" expr="workflow_name()" >
<FUNCTION_CALL name="workflow_name"  type="DI" />
</DIExpression>
</DIAssignmentStep>
<DIFunctionCallStep typeId="23" >
<DIExpression isString="true" expr="abc_startwf_fn($L_IDENTIFIER, $G_PROCESS_ID)" >
<FUNCTION_CALL name="abc_startwf_fn"  type="DI" >
<VARIABLE_REFERENCE name="$L_IDENTIFIER" />
<VARIABLE_REFERENCE name="$G_PROCESS_ID" />
</FUNCTION_CALL>
</DIExpression>
</DIFunctionCallStep>
<DIIfStep typeId="2" >
<DIExpression isString="true" expr="($G_TRACE_MODE = 1)" >
<LOGICAL_OP op="EQ">
<VARIABLE_REFERENCE name="$G_TRACE_MODE" />
<CONSTANT value="1" datatype="INT" />
</LOGICAL_OP>
</DIExpression>
<DIIf>
<DIFunctionCallStep typeId="23" >
<DIExpression isString="true" expr="print(' ')" >
<FUNCTION_CALL name="print"  type="DI" >
<CONSTANT value=" " datatype="VARCHAR" size="1" />
</FUNCTION_CALL>
</DIExpression>
</DIFunctionCallStep>
<DIFunctionCallStep typeId="23" >
<DIExpression isString="true" expr="print(' ')" >
<FUNCTION_CALL name="print"  type="DI" >
<CONSTANT value=" " datatype="VARCHAR" size="1" />
</FUNCTION_CALL>
</DIExpression>
</DIFunctionCallStep>
<DIFunctionCallStep typeId="23" >
<DIExpression isString="true" expr="print((('The Workfolw ' || workflow_name()) || ' is running in Debug mode.'))" >
<FUNCTION_CALL name="print"  type="DI" >
<CONCAT>
<CONCAT>
<CONSTANT value="The Workfolw " datatype="VARCHAR" size="13" />
<FUNCTION_CALL name="workflow_name"  type="DI" />
</CONCAT>
<CONSTANT value=" is running in Debug mode." datatype="VARCHAR" size="26" />
</CONCAT>
</FUNCTION_CALL>
</DIExpression>
</DIFunctionCallStep>
<DIFunctionCallStep typeId="23" >
<DIExpression isString="true" expr="print(' ')" >
<FUNCTION_CALL name="print"  type="DI" >
<CONSTANT value=" " datatype="VARCHAR" size="1" />
</FUNCTION_CALL>
</DIExpression>
</DIFunctionCallStep>
<DIFunctionCallStep typeId="23" >
<DIExpression isString="true" expr="print(' ')" >
<FUNCTION_CALL name="print"  type="DI" >
<CONSTANT value=" " datatype="VARCHAR" size="1" />
</FUNCTION_CALL>
</DIExpression>
</DIFunctionCallStep>
</DIIf>
</DIIfStep>
</DIScript>
<DICallStep typeId="1"  calledObjectType="Dataflow" name="STATUS_KEY_LOOKUP_NEW_DF" >
</DICallStep>
<DIScript>
<DIUIOptions>
<DIAttribute name="ui_display_name" value="STATUS_KEY_LOOKUP_NEW_END_SC"/>
<DIAttribute name="ui_script_text" value="#--- ABC ---&#xA;ABC_ENDWF_FN($L_IDENTIFIER, $G_PROCESS_ID);&#xA;&#xA;&#xA;#---&#xA;&#xA;if( $G_TRACE_MODE = 1)&#xA;Begin&#xA;print(' ');&#xA;print(' ');&#xA;print('The Workfolw ' || workflow_name() || ' is completed running in Debug mode.');&#xA;print(' ');&#xA;print(' ');&#xA;END"/>
</DIUIOptions>
<DIFunctionCallStep typeId="23" >
<DIExpression isString="true" expr="abc_endwf_fn($L_IDENTIFIER, $G_PROCESS_ID)" >
<FUNCTION_CALL name="abc_endwf_fn"  type="DI" >
<VARIABLE_REFERENCE name="$L_IDENTIFIER" />
<VARIABLE_REFERENCE name="$G_PROCESS_ID" />
</FUNCTION_CALL>
</DIExpression>
</DIFunctionCallStep>
<DIIfStep typeId="2" >
<DIExpression isString="true" expr="($G_TRACE_MODE = 1)" >
<LOGICAL_OP op="EQ">
<VARIABLE_REFERENCE name="$G_TRACE_MODE" />
<CONSTANT value="1" datatype="INT" />
</LOGICAL_OP>
</DIExpression>
<DIIf>
<DIFunctionCallStep typeId="23" >
<DIExpression isString="true" expr="print(' ')" >
<FUNCTION_CALL name="print"  type="DI" >
<CONSTANT value=" " datatype="VARCHAR" size="1" />
</FUNCTION_CALL>
</DIExpression>
</DIFunctionCallStep>
<DIFunctionCallStep typeId="23" >
<DIExpression isString="true" expr="print(' ')" >
<FUNCTION_CALL name="print"  type="DI" >
<CONSTANT value=" " datatype="VARCHAR" size="1" />
</FUNCTION_CALL>
</DIExpression>
</DIFunctionCallStep>
<DIFunctionCallStep typeId="23" >
<DIExpression isString="true" expr="print((('The Workfolw ' || workflow_name()) || ' is completed running in Debug mode.'))" >
<FUNCTION_CALL name="print"  type="DI" >
<CONCAT>
<CONCAT>
<CONSTANT value="The Workfolw " datatype="VARCHAR" size="13" />
<FUNCTION_CALL name="workflow_name"  type="DI" />
</CONCAT>
<CONSTANT value=" is completed running in Debug mode." datatype="VARCHAR" size="36" />
</CONCAT>
</FUNCTION_CALL>
</DIExpression>
</DIFunctionCallStep>
<DIFunctionCallStep typeId="23" >
<DIExpression isString="true" expr="print(' ')" >
<FUNCTION_CALL name="print"  type="DI" >
<CONSTANT value=" " datatype="VARCHAR" size="1" />
</FUNCTION_CALL>
</DIExpression>
</DIFunctionCallStep>
<DIFunctionCallStep typeId="23" >
<DIExpression isString="true" expr="print(' ')" >
<FUNCTION_CALL name="print"  type="DI" >
<CONSTANT value=" " datatype="VARCHAR" size="1" />
</FUNCTION_CALL>
</DIExpression>
</DIFunctionCallStep>
</DIIf>
</DIIfStep>
</DIScript>
</DISteps>
<DICatch typeId="20" errorCode="210101" >
<DIUIOptions>
<DIAttribute name="ui_display_name" value="STATUS_KEY_LOOKUP_NEW_CATCH"/>
</DIUIOptions>
<DISteps>
<DIScript>
<DIUIOptions>
<DIAttribute name="ui_display_name" value="STATUS_KEY_LOOKUP_FAIL_SC"/>
<DIAttribute name="ui_script_text" value="#ABC - CALL FUNCTION TO TRACK END OF WORKFLOW&#xA;ABC_FAILWF_FN(workflow_name(), $G_PROCESS_ID, 'Error: \[' || error_number() || '\] ' || error_message());&#xA;&#xA;&#xA;#-------------&#xA;if($G_TRACE_MODE=1)&#xA;begin&#xA;print(' ');&#xA;print(' ');&#xA;print('Message from the PERIOD_LOOKUP_NEW_CATCH Block Script:');&#xA;print('The Workflow ' || workflow_name() || ' has failed to run.');&#xA;print(' ');&#xA;print(' ');&#xA;end"/>
</DIUIOptions>
<DIFunctionCallStep typeId="23" >
<DIExpression isString="true" expr="abc_failwf_fn(workflow_name(), $G_PROCESS_ID, ((('Error: \\[' || error_number()) || '\\] ') || error_message()))" >
<FUNCTION_CALL name="abc_failwf_fn"  type="DI" >
<FUNCTION_CALL name="workflow_name"  type="DI" />
<VARIABLE_REFERENCE name="$G_PROCESS_ID" />
<CONCAT>
<CONCAT>
<CONCAT>
<CONSTANT value="Error: \[" datatype="VARCHAR" size="9" />
<FUNCTION_CALL name="error_number"  type="DI" />
</CONCAT>
<CONSTANT value="\] " datatype="VARCHAR" size="3" />
</CONCAT>
<FUNCTION_CALL name="error_message"  type="DI" />
</CONCAT>
</FUNCTION_CALL>
</DIExpression>
</DIFunctionCallStep>
<DIIfStep typeId="2" >
<DIExpression isString="true" expr="($G_TRACE_MODE = 1)" >
<LOGICAL_OP op="EQ">
<VARIABLE_REFERENCE name="$G_TRACE_MODE" />
<CONSTANT value="1" datatype="INT" />
</LOGICAL_OP>
</DIExpression>
<DIIf>
<DIFunctionCallStep typeId="23" >
<DIExpression isString="true" expr="print(' ')" >
<FUNCTION_CALL name="print"  type="DI" >
<CONSTANT value=" " datatype="VARCHAR" size="1" />
</FUNCTION_CALL>
</DIExpression>
</DIFunctionCallStep>
<DIFunctionCallStep typeId="23" >
<DIExpression isString="true" expr="print(' ')" >
<FUNCTION_CALL name="print"  type="DI" >
<CONSTANT value=" " datatype="VARCHAR" size="1" />
</FUNCTION_CALL>
</DIExpression>
</DIFunctionCallStep>
<DIFunctionCallStep typeId="23" >
<DIExpression isString="true" expr="print('Message from the PERIOD_LOOKUP_NEW_CATCH Block Script:')" >
<FUNCTION_CALL name="print"  type="DI" >
<CONSTANT value="Message from the PERIOD_LOOKUP_NEW_CATCH Block Script:" datatype="VARCHAR" size="54" />
</FUNCTION_CALL>
</DIExpression>
</DIFunctionCallStep>
<DIFunctionCallStep typeId="23" >
<DIExpression isString="true" expr="print((('The Workflow ' || workflow_name()) || ' has failed to run.'))" >
<FUNCTION_CALL name="print"  type="DI" >
<CONCAT>
<CONCAT>
<CONSTANT value="The Workflow " datatype="VARCHAR" size="13" />
<FUNCTION_CALL name="workflow_name"  type="DI" />
</CONCAT>
<CONSTANT value=" has failed to run." datatype="VARCHAR" size="19" />
</CONCAT>
</FUNCTION_CALL>
</DIExpression>
</DIFunctionCallStep>
<DIFunctionCallStep typeId="23" >
<DIExpression isString="true" expr="print(' ')" >
<FUNCTION_CALL name="print"  type="DI" >
<CONSTANT value=" " datatype="VARCHAR" size="1" />
</FUNCTION_CALL>
</DIExpression>
</DIFunctionCallStep>
<DIFunctionCallStep typeId="23" >
<DIExpression isString="true" expr="print(' ')" >
<FUNCTION_CALL name="print"  type="DI" >
<CONSTANT value=" " datatype="VARCHAR" size="1" />
</FUNCTION_CALL>
</DIExpression>
</DIFunctionCallStep>
</DIIf>
</DIIfStep>
</DIScript>
</DISteps>
</DICatch>
</DITryStep>
</DISteps>
<DIAttributes>
<DIAttribute name="run_once" value="no"/>
<DIAttribute name="unit_of_recovery" value="no"/>
</DIAttributes>
</DIWorkflow>
<DIDataflow name="STATUS_KEY_LOOKUP_NEW_DF" typeId="1" >
<DIUIOptions>
<DIAnnotation name="ANNOTATION_0"><DIAttribute name="ObjectDesc" value="Populate the dimension name, durable and surrogate key fields for new records from the XFRN staging table to the {ENTITY}_KEY_LOOKUP table. This table is then used as a lookup table for the fact table "/>
</DIAnnotation></DIUIOptions>
<DIProperties>
<DIAttribute name="Description" value="The dataflow that is based on the incoming _XFRN load ready target staging tables to populate the dimension name, durable and surrogate key fields for new records to the DIMENSIONKEY_LOOKUP table. This table is then used as a lookup table for the fact table."/>
</DIProperties>
<DITransforms>
<DIQuery typeId="122"  >
<DIUIOptions>
<DIAttribute name="ObjectDesc" value="Perform lookup on the ID field to see if it already exists, otherwise it is marked with value of 2. Then based on that value in the Case transform, map as either a New record or New SCD2 (update) record"/>
<DIAttribute name="ui_acta_from_schema_0" value="STATUS_DIM_XFRN_V"/>
<DIAttribute name="ui_display_name" value="QRY_LKUP"/>
</DIUIOptions>
<DISchema name="QRY_LKUP" >
<DIElement name="PK_STATUS_ID" datatype="DECIMAL" precision="18" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="STATUS_DIM_XFRN_V.PK_STATUS_ID&#xA;"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_DURABLE_KEY" datatype="DECIMAL" precision="18" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="STATUS_DIM_XFRN_V.MD_DURABLE_KEY&#xA; &#xA;"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_SURROGATE_KEY" datatype="DECIMAL" precision="18" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="STATUS_DIM_XFRN_V.PK_STATUS_ID&#xA;"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_CREATEDDATE" datatype="DATETIME" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="STATUS_DIM_XFRN_V.MD_CREATEDDATE&#xA; &#xA;"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_LASTMODDATE" datatype="DATETIME" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="STATUS_DIM_XFRN_V.MD_LASTMODDATE&#xA; &#xA;"/>
</DIAttributes>
</DIElement>
</DISchema>
<DISelect>
<DIProjection>
<DIExpression isString="true" expr="STATUS_DIM_XFRN_V.PK_STATUS_ID" >
<COLUMN_REFERENCE  qualifier1="STATUS_DIM_XFRN_V" column="PK_STATUS_ID" />
</DIExpression>
<DIExpression isString="true" expr="STATUS_DIM_XFRN_V.MD_DURABLE_KEY" >
<COLUMN_REFERENCE  qualifier1="STATUS_DIM_XFRN_V" column="MD_DURABLE_KEY" />
</DIExpression>
<DIExpression isString="true" expr="STATUS_DIM_XFRN_V.PK_STATUS_ID" >
<COLUMN_REFERENCE  qualifier1="STATUS_DIM_XFRN_V" column="PK_STATUS_ID" />
</DIExpression>
<DIExpression isString="true" expr="STATUS_DIM_XFRN_V.MD_CREATEDDATE" >
<COLUMN_REFERENCE  qualifier1="STATUS_DIM_XFRN_V" column="MD_CREATEDDATE" />
</DIExpression>
<DIExpression isString="true" expr="STATUS_DIM_XFRN_V.MD_LASTMODDATE" >
<COLUMN_REFERENCE  qualifier1="STATUS_DIM_XFRN_V" column="MD_LASTMODDATE" />
</DIExpression>
</DIProjection>
<DIFrom>
<DITableSpec name="STATUS_DIM_XFRN_V" />
</DIFrom>
</DISelect>
<DIAttributes>
<DIAttribute name="distinct_run_as_separate_process" value="no"/>
<DIAttribute name="group_by_run_as_separate_process" value="no"/>
<DIAttribute name="join_run_as_separate_process" value="no"/>
<DIAttribute name="order_by_run_as_separate_process" value="no"/>
<DIAttribute name="run_as_separate_process" value="no"/>
</DIAttributes>
</DIQuery>

<DIQuery typeId="122"  >
<DIUIOptions>
<DIAttribute name="ObjectDesc" value="Populate the dimension name, durable and surrogate key fields for new records from the XFRN staging table to the DIMENSIONKEY_LOOKUP table."/>
<DIAttribute name="ui_acta_from_schema_0" value="QRY_LKUP"/>
<DIAttribute name="ui_display_name" value="QRY_NEW"/>
</DIUIOptions>
<DISchema name="QRY_NEW" >
<DIElement name="PK_STATUS_LOOKUP_ID" datatype="DECIMAL" precision="18" scale="0" key="true" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="greatest(5+gen_row_num(),key_generation('DWSTAGING_DS.DWSTAGING_ALIAS.STATUS_KEY_LOOKUP', 'PK_STATUS_LOOKUP_ID', 1))&#xA; &#xA;"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_DURABLE_KEY" datatype="DECIMAL" precision="18" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="QRY_LKUP.MD_DURABLE_KEY&#xA; &#xA;"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_SURROGATE_KEY" datatype="DECIMAL" precision="18" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="QRY_LKUP.PK_STATUS_ID"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_FLAG" datatype="VARCHAR" size="10" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="$G_FLAG_NEW &#xA; &#xA;"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_CREATEDDATE" datatype="DATETIME" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="$G_MODDATE_LOC &#xA; &#xA;"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_LASTMODDATE" datatype="DATETIME" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="null&#xA; &#xA;"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_BATCH_ID" datatype="DECIMAL" precision="19" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="$G_BATCH_ID&#xA; &#xA;"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_PROCESS_ID" datatype="DECIMAL" precision="19" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="$G_PROCESS_ID &#xA; &#xA;"/>
</DIAttributes>
</DIElement>
</DISchema>
<DISelect>
<DIProjection>
<DIExpression isString="true" expr="greatest((5 + gen_row_num()), key_generation(DWSTAGING_DS.DWSTAGING_ALIAS.STATUS_KEY_LOOKUP, 'PK_STATUS_LOOKUP_ID', 1) )" >
<FUNCTION_CALL name="greatest"  type="DI" >
<ADD>
<CONSTANT value="5" datatype="INT" />
<FUNCTION_CALL name="gen_row_num"  type="DI" />
</ADD>
<FUNCTION_CALL name="key_generation"  type="DI" tableDatastore="DWSTAGING_DS" tableOwner="DWSTAGING_ALIAS" tableName="STATUS_KEY_LOOKUP" >
<CONSTANT value="PK_STATUS_LOOKUP_ID" datatype="VARCHAR" size="19" />
<CONSTANT value="1" datatype="INT" />
</FUNCTION_CALL>
</FUNCTION_CALL>
</DIExpression>
<DIExpression isString="true" expr="QRY_LKUP.MD_DURABLE_KEY" >
<COLUMN_REFERENCE  qualifier1="QRY_LKUP" column="MD_DURABLE_KEY" />
</DIExpression>
<DIExpression isString="true" expr="QRY_LKUP.PK_STATUS_ID" >
<COLUMN_REFERENCE  qualifier1="QRY_LKUP" column="PK_STATUS_ID" />
</DIExpression>
<DIExpression isString="true" expr="$G_FLAG_NEW" >
<VARIABLE_REFERENCE name="$G_FLAG_NEW" />
</DIExpression>
<DIExpression isString="true" expr="$G_MODDATE_LOC" >
<VARIABLE_REFERENCE name="$G_MODDATE_LOC" />
</DIExpression>
<DIExpression isString="true" expr=" NULL " >
<CONSTANT_NULL /></DIExpression>
<DIExpression isString="true" expr="$G_BATCH_ID" >
<VARIABLE_REFERENCE name="$G_BATCH_ID" />
</DIExpression>
<DIExpression isString="true" expr="$G_PROCESS_ID" >
<VARIABLE_REFERENCE name="$G_PROCESS_ID" />
</DIExpression>
</DIProjection>
<DIFrom>
<DITableSpec name="QRY_LKUP" />
</DIFrom>
</DISelect>
<DIAttributes>
<DIAttribute name="distinct_run_as_separate_process" value="no"/>
<DIAttribute name="group_by_run_as_separate_process" value="no"/>
<DIAttribute name="join_run_as_separate_process" value="no"/>
<DIAttribute name="order_by_run_as_separate_process" value="no"/>
<DIAttribute name="run_as_separate_process" value="no"/>
</DIAttributes>
</DIQuery>

<DIDatabaseTableSource typeId="22" datastoreName="DWSTAGING_DS" ownerName="DWSTAGING_ALIAS" tableName="STATUS_DIM_XFRN_V" >
<DIOutputView name="STATUS_DIM_XFRN_V"  />
<DIAttributes>
<DIAttribute name="array_fetch_size" value="1000"/>
<DIAttribute name="cache" value="yes"/>
<DIAttribute name="connection_port" value="no"/>
<DIAttribute name="enable_partitioning" value="no"/>
<DIAttribute name="name" value="DWSTAGING_DS"/>
<DIAttribute name="package_size" value="0"/>
<DIAttribute name="reader_is_DB2CDC_table" value="no"/>
<DIAttribute name="reader_overflow_file" value="overflow_file"/>
<DIAttribute name="reader_template_table" value="no"/>
<DIAttribute name="reader_use_overflow_file" value="no"/>
<DIAttribute name="reader_use_trex_transaction" value="no"/>
<DIAttribute name="table_weight" value="0"/>
</DIAttributes>
</DIDatabaseTableSource>

<DIDatabaseTableTarget typeID="11" bulkLoader="false" datastoreName="DWSTAGING_DS" ownerName="DWSTAGING_ALIAS" tableName="STATUS_KEY_LOOKUP" >
<DIInputView name="QRY_NEW"  />
<DIAttributes>
<DIAttribute name="LDRLiveLoad" value="no"/>
<DIAttribute name="Table_Type" value="TABLE"/>
<DIAttribute name="connection_port" value="no"/>
<DIAttribute name="ldr_configuration_enabled" value="yes"/>
<DIAttribute name="ldr_configurations" hasNestedXMLTree ="true">

<LDRConfigurations>
<LDRConfiguration database_type="Microsoft_SQL_Server" database_version="Microsoft SQL Server 2005">
<auto_correct_using_merge>Yes</auto_correct_using_merge>
<bulk_ldr_all_rows></bulk_ldr_all_rows>
<bulk_ldr_max_errors></bulk_ldr_max_errors>
<bulk_ldr_rows_per_commit>1000</bulk_ldr_rows_per_commit>
<enable_partitioning>no</enable_partitioning>
<ignore_column_case>yes</ignore_column_case>
<ignore_columns_null>no</ignore_columns_null>
<ignore_columns_value></ignore_columns_value>
<loader_auto_correct>yes</loader_auto_correct>
<loader_bulk_load></loader_bulk_load>
<loader_compare_column>compare_by_name</loader_compare_column>
<loader_delete_map></loader_delete_map>
<loader_drop_and_create_table>no</loader_drop_and_create_table>
<loader_insert_map></loader_insert_map>
<loader_load_choice>append</loader_load_choice>
<loader_num_parallel_loaders>1</loader_num_parallel_loaders>
<loader_overflow_file>overflow_file</loader_overflow_file>
<loader_post_load1></loader_post_load1>
<loader_pre_load1></loader_pre_load1>
<loader_quote_names>0</loader_quote_names>
<loader_transactional>no</loader_transactional>
<loader_transactional_order>0</loader_transactional_order>
<loader_update_key_columns>no</loader_update_key_columns>
<loader_update_map></loader_update_map>
<loader_use_user_defined_keys>no</loader_use_user_defined_keys>
<loader_xact_size>1000</loader_xact_size>
<mssql_bulk_ldr_mode>append</mssql_bulk_ldr_mode>
<mssql_bulk_ldr_packet_size>0</mssql_bulk_ldr_packet_size>
<overflow_file_format>Write data</overflow_file_format>
<overriding_substitution_parameter_for_tablename></overriding_substitution_parameter_for_tablename>
<use_overflow_file>no</use_overflow_file>
<use_unicode_varchar>no</use_unicode_varchar>
<sql_text></sql_text>
</LDRConfiguration>
</LDRConfigurations>
</DIAttribute>
<DIAttribute name="loader_template_table" value="no"/>
<DIAttribute name="name" value="DWSTAGING_DS"/>
<DIAttribute name="use_unicode_varchar" value="no"/>
</DIAttributes>
</DIDatabaseTableTarget>

</DITransforms>
<DIAttributes>
<DIAttribute name="Cache_type" value="pageable_cache"/>
<DIAttribute name="Parallelism_degree" value="0"/>
<DIAttribute name="allows_both_input_and_output" value="yes"/>
<DIAttribute name="run_once" value="no"/>
<DIAttribute name="use_dataflow_links" value="no"/>
<DIAttribute name="use_datastore_links" value="yes"/>
<DIAttribute name="validation_xform_exists" value="no"/>
<DIAttribute name="validation_xform_stats" value="no"/>
</DIAttributes>
</DIDataflow>
<DIWorkflow name="STATUS_KEY_LOOKUP_UPD_WF" typeId="2" >
<DIProperties>
<DIAttribute name="Description" value="The workflow {TARGET DIMENSION NAME}_LOOKUP_WF is the workflow responsible for loading dimension keys that are generated into the table DIMENSIONKEY_LOOKUP.  The workflow will be composed of the following objects:&#xA;•&#x9;{TARGET DIMENSION NAME}_LOOKUP_TRY – The beginning of the TRY/CATCH block in Data Services&#xA;•&#x9;{TARGET DIMENSION NAME}_LOOKUP_START_SC – The script that calls the custom function that initiates the metadata tracking for the workflow. The script also calls the custom function that creates pseudo surrogate key record. &#xA;•&#x9;{TARGET DIMENSION NAME}_LOOKUP_DEL_DF – The dataflow that is based on the incoming _XFRD load ready target staging tables to query the DIMENSIONKEY_LOOKUP table with the records to delete and Map all rows as Normal for deletion.&#xA;•&#x9;{TARGET DIMENSION NAME}_LOOKUP_UPD_DF – The dataflow that is based on the incoming _XFRU load ready target staging tables to query based on the durable key field and post updates to DIMENSIONKEY_LOOKUP table.&#xA;•&#x9;{TARGET DIMENSION NAME}_LOOKUP_NEW_DF – The dataflow that is based on the incoming _XFRN load ready target staging tables to populate the dimension name, durable and surrogate key fields for new records to the DIMENSIONKEY_LOOKUP table. This table is then used as a lookup table for the fact table.&#xA;•&#x9;{TARGET DIMENSION NAME}_LOOKUP_END_SC – The script that calls the custom function that closes the metadata for the workflow.&#xA;•&#x9;{TARGET DIMENSION NAME}_LOOKUP_CATCH – The end of the TRY/CATCH block.  It contains the script that calls the custom function which writes metadata if there is a failure."/>
</DIProperties>
<DIVariables>
<DIElement paramType="LOCAL" name="$L_IDENTIFIER" datatype="VARCHAR" size="100" >
</DIElement>
<DIElement paramType="LOCAL" name="$L_EXTRACT_BEGIN_DATE" datatype="DATETIME" >
</DIElement>
<DIElement paramType="LOCAL" name="$L_EXTRACT_END_DATE" datatype="DATETIME" >
</DIElement>
</DIVariables>
<DISteps>
<DITryStep typeId="13" >
<DIUIOptions>
<DIAttribute name="ObjectDesc" value="the Try of the Try / Catch Block"/>
<DIAttribute name="ui_display_name" value="STATUS_PERSON_KEY_LOOKUP_UPD_TRY"/>
</DIUIOptions>
<DISteps>
<DIScript>
<DIUIOptions>
<DIAttribute name="ObjectDesc" value="The workflow script object which contains the script to call the custom start workflow function.  This script opens the metadata records that are part of this process"/>
<DIAttribute name="ui_display_name" value="STATUS_KEY_LOOKUP_UPD_START_SC"/>
<DIAttribute name="ui_script_text" value="#-- ABC ---&#xA;$L_IDENTIFIER = workflow_name();&#xA;ABC_STARTWF_FN($L_IDENTIFIER, $G_PROCESS_ID);&#xA;&#xA;#----&#xA;if( $G_TRACE_MODE = 1)&#xA;Begin&#xA;print(' ');&#xA;print(' ');&#xA;print('The Workfolw ' || workflow_name() || ' is running in Debug mode.');&#xA;print(' ');&#xA;print(' ');&#xA;END&#xA;"/>
</DIUIOptions>
<DIAssignmentStep typeId="12" variable="$L_IDENTIFIER" >
<DIExpression isString="true" expr="workflow_name()" >
<FUNCTION_CALL name="workflow_name"  type="DI" />
</DIExpression>
</DIAssignmentStep>
<DIFunctionCallStep typeId="23" >
<DIExpression isString="true" expr="abc_startwf_fn($L_IDENTIFIER, $G_PROCESS_ID)" >
<FUNCTION_CALL name="abc_startwf_fn"  type="DI" >
<VARIABLE_REFERENCE name="$L_IDENTIFIER" />
<VARIABLE_REFERENCE name="$G_PROCESS_ID" />
</FUNCTION_CALL>
</DIExpression>
</DIFunctionCallStep>
<DIIfStep typeId="2" >
<DIExpression isString="true" expr="($G_TRACE_MODE = 1)" >
<LOGICAL_OP op="EQ">
<VARIABLE_REFERENCE name="$G_TRACE_MODE" />
<CONSTANT value="1" datatype="INT" />
</LOGICAL_OP>
</DIExpression>
<DIIf>
<DIFunctionCallStep typeId="23" >
<DIExpression isString="true" expr="print(' ')" >
<FUNCTION_CALL name="print"  type="DI" >
<CONSTANT value=" " datatype="VARCHAR" size="1" />
</FUNCTION_CALL>
</DIExpression>
</DIFunctionCallStep>
<DIFunctionCallStep typeId="23" >
<DIExpression isString="true" expr="print(' ')" >
<FUNCTION_CALL name="print"  type="DI" >
<CONSTANT value=" " datatype="VARCHAR" size="1" />
</FUNCTION_CALL>
</DIExpression>
</DIFunctionCallStep>
<DIFunctionCallStep typeId="23" >
<DIExpression isString="true" expr="print((('The Workfolw ' || workflow_name()) || ' is running in Debug mode.'))" >
<FUNCTION_CALL name="print"  type="DI" >
<CONCAT>
<CONCAT>
<CONSTANT value="The Workfolw " datatype="VARCHAR" size="13" />
<FUNCTION_CALL name="workflow_name"  type="DI" />
</CONCAT>
<CONSTANT value=" is running in Debug mode." datatype="VARCHAR" size="26" />
</CONCAT>
</FUNCTION_CALL>
</DIExpression>
</DIFunctionCallStep>
<DIFunctionCallStep typeId="23" >
<DIExpression isString="true" expr="print(' ')" >
<FUNCTION_CALL name="print"  type="DI" >
<CONSTANT value=" " datatype="VARCHAR" size="1" />
</FUNCTION_CALL>
</DIExpression>
</DIFunctionCallStep>
<DIFunctionCallStep typeId="23" >
<DIExpression isString="true" expr="print(' ')" >
<FUNCTION_CALL name="print"  type="DI" >
<CONSTANT value=" " datatype="VARCHAR" size="1" />
</FUNCTION_CALL>
</DIExpression>
</DIFunctionCallStep>
</DIIf>
</DIIfStep>
</DIScript>
<DICallStep typeId="1"  calledObjectType="Dataflow" name="STATUS_KEY_LOOKUP_UPD_DF" >
</DICallStep>
<DIScript>
<DIUIOptions>
<DIAttribute name="ui_display_name" value="STATUS_KEY_LOOKUP_UPD_END_SC"/>
<DIAttribute name="ui_script_text" value="#--- ABC ---&#xA;ABC_ENDWF_FN($L_IDENTIFIER, $G_PROCESS_ID);&#xA;&#xA;#----&#xA;if( $G_DEBUG_MODE = 1)&#xA;Begin&#xA;print(' ');&#xA;print(' ');&#xA;print('The Workfolw ' || workflow_name() || ' is completed running in Debug mode.');&#xA;print(' ');&#xA;print(' ');&#xA;END"/>
</DIUIOptions>
<DIFunctionCallStep typeId="23" >
<DIExpression isString="true" expr="abc_endwf_fn($L_IDENTIFIER, $G_PROCESS_ID)" >
<FUNCTION_CALL name="abc_endwf_fn"  type="DI" >
<VARIABLE_REFERENCE name="$L_IDENTIFIER" />
<VARIABLE_REFERENCE name="$G_PROCESS_ID" />
</FUNCTION_CALL>
</DIExpression>
</DIFunctionCallStep>
<DIIfStep typeId="2" >
<DIExpression isString="true" expr="($G_DEBUG_MODE = 1)" >
<LOGICAL_OP op="EQ">
<VARIABLE_REFERENCE name="$G_DEBUG_MODE" />
<CONSTANT value="1" datatype="INT" />
</LOGICAL_OP>
</DIExpression>
<DIIf>
<DIFunctionCallStep typeId="23" >
<DIExpression isString="true" expr="print(' ')" >
<FUNCTION_CALL name="print"  type="DI" >
<CONSTANT value=" " datatype="VARCHAR" size="1" />
</FUNCTION_CALL>
</DIExpression>
</DIFunctionCallStep>
<DIFunctionCallStep typeId="23" >
<DIExpression isString="true" expr="print(' ')" >
<FUNCTION_CALL name="print"  type="DI" >
<CONSTANT value=" " datatype="VARCHAR" size="1" />
</FUNCTION_CALL>
</DIExpression>
</DIFunctionCallStep>
<DIFunctionCallStep typeId="23" >
<DIExpression isString="true" expr="print((('The Workfolw ' || workflow_name()) || ' is completed running in Debug mode.'))" >
<FUNCTION_CALL name="print"  type="DI" >
<CONCAT>
<CONCAT>
<CONSTANT value="The Workfolw " datatype="VARCHAR" size="13" />
<FUNCTION_CALL name="workflow_name"  type="DI" />
</CONCAT>
<CONSTANT value=" is completed running in Debug mode." datatype="VARCHAR" size="36" />
</CONCAT>
</FUNCTION_CALL>
</DIExpression>
</DIFunctionCallStep>
<DIFunctionCallStep typeId="23" >
<DIExpression isString="true" expr="print(' ')" >
<FUNCTION_CALL name="print"  type="DI" >
<CONSTANT value=" " datatype="VARCHAR" size="1" />
</FUNCTION_CALL>
</DIExpression>
</DIFunctionCallStep>
<DIFunctionCallStep typeId="23" >
<DIExpression isString="true" expr="print(' ')" >
<FUNCTION_CALL name="print"  type="DI" >
<CONSTANT value=" " datatype="VARCHAR" size="1" />
</FUNCTION_CALL>
</DIExpression>
</DIFunctionCallStep>
</DIIf>
</DIIfStep>
</DIScript>
</DISteps>
<DICatch typeId="20" errorCode="210101" >
<DIUIOptions>
<DIAttribute name="ui_display_name" value="STATUS_KEY_LOOKUP_UPD_CATCH"/>
</DIUIOptions>
<DISteps>
<DIScript>
<DIUIOptions>
<DIAttribute name="ui_display_name" value="STATUS_KEY_LOOKUP_FAIL_SC"/>
<DIAttribute name="ui_script_text" value="#ABC - CALL FUNCTION TO TRACK END OF WORKFLOW&#xA;ABC_FAILWF_FN(workflow_name(), $G_PROCESS_ID, 'Error: \[' || error_number() || '\] ' || error_message());&#xA;&#xA;#----&#xA;if($G_TRACE_MODE=1)&#xA;begin&#xA;print(' ');&#xA;print(' ');&#xA;print('Message from the PERIOD_LOOKUP_UPD_CATCH Block Script:');&#xA;print('The Workflow ' || workflow_name() || ' has failed to run.');&#xA;print(' ');&#xA;print(' ');&#xA;end"/>
</DIUIOptions>
<DIFunctionCallStep typeId="23" >
<DIExpression isString="true" expr="abc_failwf_fn(workflow_name(), $G_PROCESS_ID, ((('Error: \\[' || error_number()) || '\\] ') || error_message()))" >
<FUNCTION_CALL name="abc_failwf_fn"  type="DI" >
<FUNCTION_CALL name="workflow_name"  type="DI" />
<VARIABLE_REFERENCE name="$G_PROCESS_ID" />
<CONCAT>
<CONCAT>
<CONCAT>
<CONSTANT value="Error: \[" datatype="VARCHAR" size="9" />
<FUNCTION_CALL name="error_number"  type="DI" />
</CONCAT>
<CONSTANT value="\] " datatype="VARCHAR" size="3" />
</CONCAT>
<FUNCTION_CALL name="error_message"  type="DI" />
</CONCAT>
</FUNCTION_CALL>
</DIExpression>
</DIFunctionCallStep>
<DIIfStep typeId="2" >
<DIExpression isString="true" expr="($G_TRACE_MODE = 1)" >
<LOGICAL_OP op="EQ">
<VARIABLE_REFERENCE name="$G_TRACE_MODE" />
<CONSTANT value="1" datatype="INT" />
</LOGICAL_OP>
</DIExpression>
<DIIf>
<DIFunctionCallStep typeId="23" >
<DIExpression isString="true" expr="print(' ')" >
<FUNCTION_CALL name="print"  type="DI" >
<CONSTANT value=" " datatype="VARCHAR" size="1" />
</FUNCTION_CALL>
</DIExpression>
</DIFunctionCallStep>
<DIFunctionCallStep typeId="23" >
<DIExpression isString="true" expr="print(' ')" >
<FUNCTION_CALL name="print"  type="DI" >
<CONSTANT value=" " datatype="VARCHAR" size="1" />
</FUNCTION_CALL>
</DIExpression>
</DIFunctionCallStep>
<DIFunctionCallStep typeId="23" >
<DIExpression isString="true" expr="print('Message from the PERIOD_LOOKUP_UPD_CATCH Block Script:')" >
<FUNCTION_CALL name="print"  type="DI" >
<CONSTANT value="Message from the PERIOD_LOOKUP_UPD_CATCH Block Script:" datatype="VARCHAR" size="54" />
</FUNCTION_CALL>
</DIExpression>
</DIFunctionCallStep>
<DIFunctionCallStep typeId="23" >
<DIExpression isString="true" expr="print((('The Workflow ' || workflow_name()) || ' has failed to run.'))" >
<FUNCTION_CALL name="print"  type="DI" >
<CONCAT>
<CONCAT>
<CONSTANT value="The Workflow " datatype="VARCHAR" size="13" />
<FUNCTION_CALL name="workflow_name"  type="DI" />
</CONCAT>
<CONSTANT value=" has failed to run." datatype="VARCHAR" size="19" />
</CONCAT>
</FUNCTION_CALL>
</DIExpression>
</DIFunctionCallStep>
<DIFunctionCallStep typeId="23" >
<DIExpression isString="true" expr="print(' ')" >
<FUNCTION_CALL name="print"  type="DI" >
<CONSTANT value=" " datatype="VARCHAR" size="1" />
</FUNCTION_CALL>
</DIExpression>
</DIFunctionCallStep>
<DIFunctionCallStep typeId="23" >
<DIExpression isString="true" expr="print(' ')" >
<FUNCTION_CALL name="print"  type="DI" >
<CONSTANT value=" " datatype="VARCHAR" size="1" />
</FUNCTION_CALL>
</DIExpression>
</DIFunctionCallStep>
</DIIf>
</DIIfStep>
</DIScript>
</DISteps>
</DICatch>
</DITryStep>
</DISteps>
<DIAttributes>
<DIAttribute name="run_once" value="no"/>
<DIAttribute name="unit_of_recovery" value="no"/>
</DIAttributes>
</DIWorkflow>
<DIDataflow name="STATUS_KEY_LOOKUP_UPD_DF" typeId="1" >
<DIProperties>
<DIAttribute name="Description" value="The dataflow that is based on the incoming _XFRU load ready target staging tables to query based on the durable key field and post updates to DIMENSIONKEY_LOOKUP table"/>
</DIProperties>
<DITransforms>
<DIQuery typeId="122"  >
<DIUIOptions>
<DIAttribute name="ObjectDesc" value="Post updates to DIMENSIONKEY_LOOKUP table based on durable key field."/>
<DIAttribute name="ui_acta_from_schema_0" value="STATUS_DIM_XFRU_V"/>
<DIAttribute name="ui_display_name" value="QRY_UPD"/>
</DIUIOptions>
<DISchema name="QRY_UPD" >
<DIElement name="PK_STATUS_LOOKUP_ID" datatype="INT" key="true" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="lookup(DWSTAGING_DS.DWSTAGING_ALIAS.STATUS_KEY_LOOKUP, PK_STATUS_LOOKUP_ID, '-2', 'NO_CACHE', MD_DURABLE_KEY, MD_DURABLE_KEY, MD_SURROGATE_KEY, PK_STATUS_ID) &#xA; &#xA;"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_DURABLE_KEY" datatype="DECIMAL" precision="18" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="STATUS_DIM_XFRU_V.MD_DURABLE_KEY&#xA; &#xA;"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_SURROGATE_KEY" datatype="DECIMAL" precision="18" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="STATUS_DIM_XFRU_V.PK_STATUS_ID&#xA; &#xA;"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_FLAG" datatype="VARCHAR" size="10" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="$G_FLAG_UPDATE &#xA; &#xA;"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_CREATEDDATE" datatype="DATETIME" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="$G_MODDATE_LOC &#xA; &#xA;"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_LASTMODDATE" datatype="DATETIME" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="$G_MODDATE_LOC &#xA; &#xA;"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_BATCH_ID" datatype="DECIMAL" precision="19" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="$G_BATCH_ID&#xA; &#xA;"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_PROCESS_ID" datatype="DECIMAL" precision="19" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="$G_PROCESS_ID &#xA; &#xA;"/>
</DIAttributes>
</DIElement>
</DISchema>
<DISelect>
<DIProjection>
<DIExpression isString="true" expr="lookup(DWSTAGING_DS.DWSTAGING_ALIAS.STATUS_KEY_LOOKUP, PK_STATUS_LOOKUP_ID, '-2', 'NO_CACHE', MD_DURABLE_KEY, MD_DURABLE_KEY, MD_SURROGATE_KEY, PK_STATUS_ID) " >
<FUNCTION_CALL name="lookup"  type="DI" tableDatastore="DWSTAGING_DS" tableOwner="DWSTAGING_ALIAS" tableName="STATUS_KEY_LOOKUP" >
<COLUMN_REFERENCE  column="PK_STATUS_LOOKUP_ID" />
<CONSTANT value="-2" datatype="VARCHAR" size="2" />
<CONSTANT value="NO_CACHE" datatype="VARCHAR" size="8" />
<COLUMN_REFERENCE  column="MD_DURABLE_KEY" />
<COLUMN_REFERENCE  column="MD_DURABLE_KEY" />
<COLUMN_REFERENCE  column="MD_SURROGATE_KEY" />
<COLUMN_REFERENCE  column="PK_STATUS_ID" />
</FUNCTION_CALL>
</DIExpression>
<DIExpression isString="true" expr="STATUS_DIM_XFRU_V.MD_DURABLE_KEY" >
<COLUMN_REFERENCE  qualifier1="STATUS_DIM_XFRU_V" column="MD_DURABLE_KEY" />
</DIExpression>
<DIExpression isString="true" expr="STATUS_DIM_XFRU_V.PK_STATUS_ID" >
<COLUMN_REFERENCE  qualifier1="STATUS_DIM_XFRU_V" column="PK_STATUS_ID" />
</DIExpression>
<DIExpression isString="true" expr="$G_FLAG_UPDATE" >
<VARIABLE_REFERENCE name="$G_FLAG_UPDATE" />
</DIExpression>
<DIExpression isString="true" expr="$G_MODDATE_LOC" >
<VARIABLE_REFERENCE name="$G_MODDATE_LOC" />
</DIExpression>
<DIExpression isString="true" expr="$G_MODDATE_LOC" >
<VARIABLE_REFERENCE name="$G_MODDATE_LOC" />
</DIExpression>
<DIExpression isString="true" expr="$G_BATCH_ID" >
<VARIABLE_REFERENCE name="$G_BATCH_ID" />
</DIExpression>
<DIExpression isString="true" expr="$G_PROCESS_ID" >
<VARIABLE_REFERENCE name="$G_PROCESS_ID" />
</DIExpression>
</DIProjection>
<DIFrom>
<DITableSpec name="STATUS_DIM_XFRU_V" />
</DIFrom>
</DISelect>
<DIAttributes>
<DIAttribute name="distinct_run_as_separate_process" value="no"/>
<DIAttribute name="group_by_run_as_separate_process" value="no"/>
<DIAttribute name="join_run_as_separate_process" value="no"/>
<DIAttribute name="order_by_run_as_separate_process" value="no"/>
<DIAttribute name="run_as_separate_process" value="no"/>
</DIAttributes>
</DIQuery>

<DIDatabaseTableSource typeId="22" datastoreName="DWSTAGING_DS" ownerName="DWSTAGING_ALIAS" tableName="STATUS_DIM_XFRU_V" >
<DIOutputView name="STATUS_DIM_XFRU_V"  />
<DIAttributes>
<DIAttribute name="array_fetch_size" value="1000"/>
<DIAttribute name="cache" value="yes"/>
<DIAttribute name="connection_port" value="no"/>
<DIAttribute name="enable_partitioning" value="no"/>
<DIAttribute name="name" value="DWSTAGING_DS"/>
<DIAttribute name="package_size" value="0"/>
<DIAttribute name="reader_is_DB2CDC_table" value="no"/>
<DIAttribute name="reader_overflow_file" value="overflow_file"/>
<DIAttribute name="reader_template_table" value="no"/>
<DIAttribute name="reader_use_overflow_file" value="no"/>
<DIAttribute name="reader_use_trex_transaction" value="no"/>
<DIAttribute name="table_weight" value="0"/>
</DIAttributes>
</DIDatabaseTableSource>

<DIDatabaseTableTarget typeID="11" bulkLoader="false" datastoreName="DWSTAGING_DS" ownerName="DWSTAGING_ALIAS" tableName="STATUS_KEY_LOOKUP" >
<DIInputView name="QRY_UPD"  />
<DIAttributes>
<DIAttribute name="LDRLiveLoad" value="no"/>
<DIAttribute name="Table_Type" value="TABLE"/>
<DIAttribute name="connection_port" value="no"/>
<DIAttribute name="ldr_configuration_enabled" value="yes"/>
<DIAttribute name="ldr_configurations" hasNestedXMLTree ="true">

<LDRConfigurations>
<LDRConfiguration database_type="Microsoft_SQL_Server" database_version="Microsoft SQL Server 2005">
<auto_correct_using_merge>Yes</auto_correct_using_merge>
<bulk_ldr_all_rows></bulk_ldr_all_rows>
<bulk_ldr_max_errors></bulk_ldr_max_errors>
<bulk_ldr_rows_per_commit></bulk_ldr_rows_per_commit>
<enable_partitioning>no</enable_partitioning>
<ignore_column_case>yes</ignore_column_case>
<ignore_columns_null>yes</ignore_columns_null>
<ignore_columns_value></ignore_columns_value>
<loader_auto_correct>yes</loader_auto_correct>
<loader_bulk_load>0</loader_bulk_load>
<loader_compare_column>compare_by_name</loader_compare_column>
<loader_delete_map></loader_delete_map>
<loader_drop_and_create_table>no</loader_drop_and_create_table>
<loader_insert_map></loader_insert_map>
<loader_load_choice>append</loader_load_choice>
<loader_num_parallel_loaders>1</loader_num_parallel_loaders>
<loader_overflow_file>overflow_file</loader_overflow_file>
<loader_post_load1></loader_post_load1>
<loader_pre_load1></loader_pre_load1>
<loader_quote_names>0</loader_quote_names>
<loader_transactional>no</loader_transactional>
<loader_transactional_order>0</loader_transactional_order>
<loader_update_key_columns>no</loader_update_key_columns>
<loader_update_map></loader_update_map>
<loader_use_user_defined_keys>no</loader_use_user_defined_keys>
<loader_xact_size>1000</loader_xact_size>
<mssql_bulk_ldr_mode>append</mssql_bulk_ldr_mode>
<mssql_bulk_ldr_packet_size>4</mssql_bulk_ldr_packet_size>
<overflow_file_format>Write data</overflow_file_format>
<overriding_substitution_parameter_for_tablename></overriding_substitution_parameter_for_tablename>
<use_overflow_file>no</use_overflow_file>
<use_unicode_varchar>no</use_unicode_varchar>
<sql_text></sql_text>
</LDRConfiguration>
</LDRConfigurations>
</DIAttribute>
<DIAttribute name="loader_template_table" value="no"/>
<DIAttribute name="name" value="DWSTAGING_DS"/>
<DIAttribute name="use_unicode_varchar" value="no"/>
</DIAttributes>
</DIDatabaseTableTarget>

</DITransforms>
<DIAttributes>
<DIAttribute name="Cache_type" value="pageable_cache"/>
<DIAttribute name="Parallelism_degree" value="0"/>
<DIAttribute name="allows_both_input_and_output" value="yes"/>
<DIAttribute name="run_once" value="no"/>
<DIAttribute name="use_dataflow_links" value="no"/>
<DIAttribute name="use_datastore_links" value="yes"/>
<DIAttribute name="validation_xform_exists" value="no"/>
<DIAttribute name="validation_xform_stats" value="no"/>
</DIAttributes>
</DIDataflow>
<DIWorkflow name="EXTN_DW_CONT_WF" typeId="2" >
<DIUIOptions>
<DIAnnotation name="ANNOTATION_0"><DIAttribute name="ObjectDesc" value="This workflow is a container for the entities concerned by the DW ETL Step for the external files"/>
</DIAnnotation></DIUIOptions>
<DIProperties>
<DIAttribute name="GeneratorTemplate" value="ENTITY_LEVEL_FOR_PRODUCT_CONTAINER_WF (version 0.13.0-SNAPSHOT)"/>
<DIAttribute name="GeneratorVersion" value="v1.0"/>
<DIAttribute name="GenerationDate" value="Fri, 23 Jan 2009 10:49:48"/>
<DIAttribute name="Description" value="This workflow is a container for the entities concerned by the DW ETL Step for the external files. It integrates the following entities:&#xD;&#xA;  - APPLICATION (version 1.0)&#xD;&#xA;  - BUDGET (version 1.0)&#xD;&#xA;  - COSTCATEGORY (version 1.0)&#xD;&#xA;  - ITFUNCTION (version 1.0)&#xD;&#xA;  - MEASURETYPE (version 1.0)&#xD;&#xA;  - PROGRAM (version 1)&#xD;&#xA;  - STATUS (version 1.0)&#xD;&#xA;"/>
</DIProperties>
<DISteps>
<DICallStep typeId="0"  calledObjectType="Workflow" name="BUDGET_DIM_WF" >
</DICallStep>
<DICallStep typeId="0"  calledObjectType="Workflow" name="COSTCATEGORY_DIM_WF" >
</DICallStep>
<DICallStep typeId="0"  calledObjectType="Workflow" name="ITFUNCTION_DIM_WF" >
</DICallStep>
<DICallStep typeId="0"  calledObjectType="Workflow" name="MEASURETYPE_DIM_WF" >
</DICallStep>
<DICallStep typeId="0"  calledObjectType="Workflow" name="EXTERN_PROGRAM_DIM_WF" >
</DICallStep>
<DICallStep typeId="0"  calledObjectType="Workflow" name="STATUS_DIM_WF" >
</DICallStep>
</DISteps>
<DIAttributes>
<DIAttribute name="run_once" value="no"/>
<DIAttribute name="unit_of_recovery" value="no"/>
</DIAttributes>
</DIWorkflow>
<DIWorkflow name="BUDGET_DIM_WF" typeId="2" >
<DIUIOptions>
<DIAnnotation name="ANNOTATION_0"><DIAttribute name="ObjectDesc" value="This workflow was created in order to house the dimension workflows that push the load ready Dimension XFR tables into the target dimension tables. These workflows are processed in serial; the deletions are first updated in the target with history information, then the updates for SCD1 and SCD2, then the new records are added to the target."/>
</DIAnnotation></DIUIOptions>
<DIProperties>
<DIAttribute name="Description" value="This workflow was created in order to house the dimension workflows that push the load ready XFR tables into the target dimension tables. These workflows are processed in serial; the deletions are first updated in the target with history information, then the updates for SCD1 and SCD2, then the new records are added to the target."/>
</DIProperties>
<DISteps>
<DICallStep typeId="0"  calledObjectType="Workflow" name="BUDGET_DIM_NEW_WF" >
</DICallStep>
<DICallStep typeId="0"  calledObjectType="Workflow" name="BUDGET_DIM_UPD_WF" >
</DICallStep>
</DISteps>
<DIAttributes>
<DIAttribute name="run_once" value="no"/>
<DIAttribute name="unit_of_recovery" value="no"/>
</DIAttributes>
</DIWorkflow>
<DIWorkflow name="BUDGET_DIM_NEW_WF" typeId="2" >
<DIUIOptions>
<DIAnnotation name="ANNOTATION_0"><DIAttribute name="ObjectDesc" value="This workflow loads records from the XFRN table and adds the new record into the dimension table. The MD BATCH ID and MD PROCESS ID fields are pulled directly from the source."/>
</DIAnnotation></DIUIOptions>
<DIProperties>
<DIAttribute name="Description" value="The workflow {Target}_DIM_NEW_WF is the workflow responsible for sourcing the records in the XFRN table and adding the new records into the DIM table. The workflow will be composed of the following objects:&#xA;•&#x9;{Target}_DIM_NEW_TRY – The beginning of the TRY/CATCH block in Data Integrator&#xA;•&#x9;{Target}_DIM_NEW_START_SC – The script that calls the custom function that initiates the metadata tracking for the workflow.&#xA;•&#x9;{Target}_DIM_NEW_DF – The dataflow that pulls all new records from the XFRN table and adds them to the target dimension.&#xA;•&#x9;{Target}_DIM_NEW_END_SC – The script that calls the custom function that closes the metadata for the workflow.&#xA;•&#x9;{Target}_DIM_NEW_CATCH – The end of the TRY/CATCH block.  It contains the script that calls the custom function which writes metadata if there is a failure."/>
</DIProperties>
<DIVariables>
<DIElement paramType="LOCAL" name="$L_IDENTIFIER" datatype="VARCHAR" size="100" >
</DIElement>
<DIElement paramType="LOCAL" name="$L_SOURCE_ENTITY" datatype="VARCHAR" size="100" >
</DIElement>
<DIElement paramType="LOCAL" name="$L_DB_OWNER" datatype="VARCHAR" size="100" >
</DIElement>
</DIVariables>
<DISteps>
<DITryStep typeId="13" >
<DIUIOptions>
<DIAttribute name="ObjectDesc" value="the Try of the Try / Catch Block"/>
<DIAttribute name="ui_display_name" value="BUDGET_DIM_NEW_TRY"/>
</DIUIOptions>
<DISteps>
<DIScript>
<DIUIOptions>
<DIAttribute name="ObjectDesc" value="The workflow script object which contains the script to call the custom start workflow function.  This script opens the metadata records that are part of this process"/>
<DIAttribute name="ui_display_name" value="BUDGET_DIM_NEW_START_SC"/>
<DIAttribute name="ui_script_text" value="#-- ABC ---&#xA;$L_IDENTIFIER = workflow_name();&#xA;ABC_STARTWF_FN($L_IDENTIFIER, $G_PROCESS_ID);&#xA;&#xA;#---&#xA;if( $G_DEBUG_MODE = 1)&#xA;Begin&#xA;print(' ');&#xA;print(' ');&#xA;print('The Workfolw ' || workflow_name() || ' is running in Debug mode.');&#xA;print(' ');&#xA;print(' ');&#xA;END&#xA;&#xA;"/>
</DIUIOptions>
<DIAssignmentStep typeId="12" variable="$L_IDENTIFIER" >
<DIExpression isString="true" expr="workflow_name()" >
<FUNCTION_CALL name="workflow_name"  type="DI" />
</DIExpression>
</DIAssignmentStep>
<DIFunctionCallStep typeId="23" >
<DIExpression isString="true" expr="abc_startwf_fn($L_IDENTIFIER, $G_PROCESS_ID)" >
<FUNCTION_CALL name="abc_startwf_fn"  type="DI" >
<VARIABLE_REFERENCE name="$L_IDENTIFIER" />
<VARIABLE_REFERENCE name="$G_PROCESS_ID" />
</FUNCTION_CALL>
</DIExpression>
</DIFunctionCallStep>
<DIIfStep typeId="2" >
<DIExpression isString="true" expr="($G_DEBUG_MODE = 1)" >
<LOGICAL_OP op="EQ">
<VARIABLE_REFERENCE name="$G_DEBUG_MODE" />
<CONSTANT value="1" datatype="INT" />
</LOGICAL_OP>
</DIExpression>
<DIIf>
<DIFunctionCallStep typeId="23" >
<DIExpression isString="true" expr="print(' ')" >
<FUNCTION_CALL name="print"  type="DI" >
<CONSTANT value=" " datatype="VARCHAR" size="1" />
</FUNCTION_CALL>
</DIExpression>
</DIFunctionCallStep>
<DIFunctionCallStep typeId="23" >
<DIExpression isString="true" expr="print(' ')" >
<FUNCTION_CALL name="print"  type="DI" >
<CONSTANT value=" " datatype="VARCHAR" size="1" />
</FUNCTION_CALL>
</DIExpression>
</DIFunctionCallStep>
<DIFunctionCallStep typeId="23" >
<DIExpression isString="true" expr="print((('The Workfolw ' || workflow_name()) || ' is running in Debug mode.'))" >
<FUNCTION_CALL name="print"  type="DI" >
<CONCAT>
<CONCAT>
<CONSTANT value="The Workfolw " datatype="VARCHAR" size="13" />
<FUNCTION_CALL name="workflow_name"  type="DI" />
</CONCAT>
<CONSTANT value=" is running in Debug mode." datatype="VARCHAR" size="26" />
</CONCAT>
</FUNCTION_CALL>
</DIExpression>
</DIFunctionCallStep>
<DIFunctionCallStep typeId="23" >
<DIExpression isString="true" expr="print(' ')" >
<FUNCTION_CALL name="print"  type="DI" >
<CONSTANT value=" " datatype="VARCHAR" size="1" />
</FUNCTION_CALL>
</DIExpression>
</DIFunctionCallStep>
<DIFunctionCallStep typeId="23" >
<DIExpression isString="true" expr="print(' ')" >
<FUNCTION_CALL name="print"  type="DI" >
<CONSTANT value=" " datatype="VARCHAR" size="1" />
</FUNCTION_CALL>
</DIExpression>
</DIFunctionCallStep>
</DIIf>
<DIElse>
</DIElse>
</DIIfStep>
</DIScript>
<DICallStep typeId="1"  calledObjectType="Dataflow" name="BUDGET_DIM_NEW_DF" >
</DICallStep>
<DIScript>
<DIUIOptions>
<DIAttribute name="ObjectDesc" value="The workflow script object that calls the custom end workflow function.  This script closes the metadata records that are part of this process."/>
<DIAttribute name="ui_display_name" value="BUDGET_DIM_NEW_END_SC"/>
<DIAttribute name="ui_script_text" value="#--- ABC ---&#xA;ABC_ENDWF_FN($L_IDENTIFIER, $G_PROCESS_ID);&#xA;&#xA;#---&#xA;if( $G_DEBUG_MODE = 1)&#xA;Begin&#xA;print(' ');&#xA;print(' ');&#xA;print('The Workfolw ' || workflow_name() || ' is completed running in Debug mode.');&#xA;print(' ');&#xA;print(' ');&#xA;END"/>
</DIUIOptions>
<DIFunctionCallStep typeId="23" >
<DIExpression isString="true" expr="abc_endwf_fn($L_IDENTIFIER, $G_PROCESS_ID)" >
<FUNCTION_CALL name="abc_endwf_fn"  type="DI" >
<VARIABLE_REFERENCE name="$L_IDENTIFIER" />
<VARIABLE_REFERENCE name="$G_PROCESS_ID" />
</FUNCTION_CALL>
</DIExpression>
</DIFunctionCallStep>
<DIIfStep typeId="2" >
<DIExpression isString="true" expr="($G_DEBUG_MODE = 1)" >
<LOGICAL_OP op="EQ">
<VARIABLE_REFERENCE name="$G_DEBUG_MODE" />
<CONSTANT value="1" datatype="INT" />
</LOGICAL_OP>
</DIExpression>
<DIIf>
<DIFunctionCallStep typeId="23" >
<DIExpression isString="true" expr="print(' ')" >
<FUNCTION_CALL name="print"  type="DI" >
<CONSTANT value=" " datatype="VARCHAR" size="1" />
</FUNCTION_CALL>
</DIExpression>
</DIFunctionCallStep>
<DIFunctionCallStep typeId="23" >
<DIExpression isString="true" expr="print(' ')" >
<FUNCTION_CALL name="print"  type="DI" >
<CONSTANT value=" " datatype="VARCHAR" size="1" />
</FUNCTION_CALL>
</DIExpression>
</DIFunctionCallStep>
<DIFunctionCallStep typeId="23" >
<DIExpression isString="true" expr="print((('The Workfolw ' || workflow_name()) || ' is completed running in Debug mode.'))" >
<FUNCTION_CALL name="print"  type="DI" >
<CONCAT>
<CONCAT>
<CONSTANT value="The Workfolw " datatype="VARCHAR" size="13" />
<FUNCTION_CALL name="workflow_name"  type="DI" />
</CONCAT>
<CONSTANT value=" is completed running in Debug mode." datatype="VARCHAR" size="36" />
</CONCAT>
</FUNCTION_CALL>
</DIExpression>
</DIFunctionCallStep>
<DIFunctionCallStep typeId="23" >
<DIExpression isString="true" expr="print(' ')" >
<FUNCTION_CALL name="print"  type="DI" >
<CONSTANT value=" " datatype="VARCHAR" size="1" />
</FUNCTION_CALL>
</DIExpression>
</DIFunctionCallStep>
<DIFunctionCallStep typeId="23" >
<DIExpression isString="true" expr="print(' ')" >
<FUNCTION_CALL name="print"  type="DI" >
<CONSTANT value=" " datatype="VARCHAR" size="1" />
</FUNCTION_CALL>
</DIExpression>
</DIFunctionCallStep>
</DIIf>
<DIElse>
</DIElse>
</DIIfStep>
</DIScript>
</DISteps>
<DICatch typeId="20" errorCode="210101" >
<DIUIOptions>
<DIAttribute name="ObjectDesc" value="The workflow catch object is the end of the TRY/CATCH block in BO DS.  This catch block will contain the script object that calls a custom fail workflow function used to write the metadata for failed jobs."/>
<DIAttribute name="ui_display_name" value="BUDGET_DIM_NEW_CATCH"/>
</DIUIOptions>
<DISteps>
<DIScript>
<DIUIOptions>
<DIAttribute name="ui_display_name" value="BUDGET_DIM_FAIL_SC"/>
<DIAttribute name="ui_script_text" value="#ABC - CALL FUNCTION TO TRACK END OF WORKFLOW&#xA;ABC_FAILWF_FN(workflow_name(), $G_PROCESS_ID, 'Error: \[' || error_number() || '\] ' || error_message());&#xA;&#xA;#--&#xA;print(' ');&#xA;print(' ');&#xA;print('Message from the ' || workflow_name() || '_CATCH Block Script:');&#xA;print('The Workflow ' || workflow_name() || ' has failed to run.');&#xA;print(' ');&#xA;print(' ');"/>
</DIUIOptions>
<DIFunctionCallStep typeId="23" >
<DIExpression isString="true" expr="abc_failwf_fn(workflow_name(), $G_PROCESS_ID, ((('Error: \\[' || error_number()) || '\\] ') || error_message()))" >
<FUNCTION_CALL name="abc_failwf_fn"  type="DI" >
<FUNCTION_CALL name="workflow_name"  type="DI" />
<VARIABLE_REFERENCE name="$G_PROCESS_ID" />
<CONCAT>
<CONCAT>
<CONCAT>
<CONSTANT value="Error: \[" datatype="VARCHAR" size="9" />
<FUNCTION_CALL name="error_number"  type="DI" />
</CONCAT>
<CONSTANT value="\] " datatype="VARCHAR" size="3" />
</CONCAT>
<FUNCTION_CALL name="error_message"  type="DI" />
</CONCAT>
</FUNCTION_CALL>
</DIExpression>
</DIFunctionCallStep>
<DIFunctionCallStep typeId="23" >
<DIExpression isString="true" expr="print(' ')" >
<FUNCTION_CALL name="print"  type="DI" >
<CONSTANT value=" " datatype="VARCHAR" size="1" />
</FUNCTION_CALL>
</DIExpression>
</DIFunctionCallStep>
<DIFunctionCallStep typeId="23" >
<DIExpression isString="true" expr="print(' ')" >
<FUNCTION_CALL name="print"  type="DI" >
<CONSTANT value=" " datatype="VARCHAR" size="1" />
</FUNCTION_CALL>
</DIExpression>
</DIFunctionCallStep>
<DIFunctionCallStep typeId="23" >
<DIExpression isString="true" expr="print((('Message from the ' || workflow_name()) || '_CATCH Block Script:'))" >
<FUNCTION_CALL name="print"  type="DI" >
<CONCAT>
<CONCAT>
<CONSTANT value="Message from the " datatype="VARCHAR" size="17" />
<FUNCTION_CALL name="workflow_name"  type="DI" />
</CONCAT>
<CONSTANT value="_CATCH Block Script:" datatype="VARCHAR" size="20" />
</CONCAT>
</FUNCTION_CALL>
</DIExpression>
</DIFunctionCallStep>
<DIFunctionCallStep typeId="23" >
<DIExpression isString="true" expr="print((('The Workflow ' || workflow_name()) || ' has failed to run.'))" >
<FUNCTION_CALL name="print"  type="DI" >
<CONCAT>
<CONCAT>
<CONSTANT value="The Workflow " datatype="VARCHAR" size="13" />
<FUNCTION_CALL name="workflow_name"  type="DI" />
</CONCAT>
<CONSTANT value=" has failed to run." datatype="VARCHAR" size="19" />
</CONCAT>
</FUNCTION_CALL>
</DIExpression>
</DIFunctionCallStep>
<DIFunctionCallStep typeId="23" >
<DIExpression isString="true" expr="print(' ')" >
<FUNCTION_CALL name="print"  type="DI" >
<CONSTANT value=" " datatype="VARCHAR" size="1" />
</FUNCTION_CALL>
</DIExpression>
</DIFunctionCallStep>
<DIFunctionCallStep typeId="23" >
<DIExpression isString="true" expr="print(' ')" >
<FUNCTION_CALL name="print"  type="DI" >
<CONSTANT value=" " datatype="VARCHAR" size="1" />
</FUNCTION_CALL>
</DIExpression>
</DIFunctionCallStep>
</DIScript>
</DISteps>
</DICatch>
</DITryStep>
</DISteps>
<DIAttributes>
<DIAttribute name="run_once" value="no"/>
<DIAttribute name="unit_of_recovery" value="no"/>
</DIAttributes>
</DIWorkflow>
<DIDataflow name="BUDGET_DIM_NEW_DF" typeId="1" >
<DIProperties>
<DIAttribute name="Description" value="The dataflow is responsible for sourcing the records in the XFRN table and adding the new record into the DIM table"/>
</DIProperties>
<DITransforms>
<DIDatabaseTableSource typeId="22" datastoreName="DWSTAGING_DS" ownerName="DWSTAGING_ALIAS" tableName="BUDGET_DIM_XFRN_V" >
<DIOutputView name="BUDGET_DIM_XFRN_V"  />
<DIAttributes>
<DIAttribute name="array_fetch_size" value="1000"/>
<DIAttribute name="cache" value="yes"/>
<DIAttribute name="connection_port" value="no"/>
<DIAttribute name="enable_partitioning" value="no"/>
<DIAttribute name="name" value="DWSTAGING_DS"/>
<DIAttribute name="package_size" value="0"/>
<DIAttribute name="reader_is_DB2CDC_table" value="no"/>
<DIAttribute name="reader_overflow_file" value="overflow_file"/>
<DIAttribute name="reader_template_table" value="no"/>
<DIAttribute name="reader_use_overflow_file" value="no"/>
<DIAttribute name="table_weight" value="0"/>
</DIAttributes>
</DIDatabaseTableSource>

<DIDatabaseTableTarget typeID="11" bulkLoader="false" datastoreName="DW_DS" ownerName="DW_ALIAS" tableName="BUDGET_DIM" >
<DIInputView name="BUDGET_DIM_XFRN_V"  />
<DIAttributes>
<DIAttribute name="LDRLiveLoad" value="no"/>
<DIAttribute name="Table_Type" value="TABLE"/>
<DIAttribute name="connection_port" value="no"/>
<DIAttribute name="ldr_configuration_enabled" value="yes"/>
<DIAttribute name="ldr_configurations" hasNestedXMLTree ="true">
<LDRConfigurations>
<LDRConfiguration database_type="Microsoft_SQL_Server" database_version="Microsoft SQL Server 2005">
<bulk_ldr_all_rows/>
<bulk_ldr_max_errors/>
<bulk_ldr_rows_per_commit>1000</bulk_ldr_rows_per_commit>
<enable_partitioning>no</enable_partitioning>
<ignore_column_case>yes</ignore_column_case>
<ignore_columns_null>no</ignore_columns_null>
<ignore_columns_value/>
<loader_auto_correct>no</loader_auto_correct>
<loader_bulk_load/>
<loader_compare_column>compare_by_name</loader_compare_column>
<loader_delete_map/>
<loader_drop_and_create_table>yes</loader_drop_and_create_table>
<loader_insert_map/>
<loader_load_choice>append</loader_load_choice>
<loader_num_parallel_loaders>1</loader_num_parallel_loaders>
<loader_overflow_file>overflow_file</loader_overflow_file>
<loader_post_load1/>
<loader_pre_load1/>
<loader_quote_names>0</loader_quote_names>
<loader_transactional>no</loader_transactional>
<loader_transactional_order>0</loader_transactional_order>
<loader_update_key_columns>no</loader_update_key_columns>
<loader_update_map/>
<loader_use_user_defined_keys>no</loader_use_user_defined_keys>
<loader_xact_size>1000</loader_xact_size>
<mssql_bulk_ldr_mode>append</mssql_bulk_ldr_mode>
<mssql_bulk_ldr_packet_size>0</mssql_bulk_ldr_packet_size>
<overflow_file_format>write_data</overflow_file_format>
<use_overflow_file>no</use_overflow_file>
<use_unicode_varchar>no</use_unicode_varchar>
<sql_text/>
</LDRConfiguration>
</LDRConfigurations>
</DIAttribute>
<DIAttribute name="loader_template_table" value="no"/>
<DIAttribute name="name" value="DW_DS"/>
<DIAttribute name="use_unicode_varchar" value="no"/>
</DIAttributes>
</DIDatabaseTableTarget>

</DITransforms>
<DIAttributes>
<DIAttribute name="Cache_type" value="pageable_cache"/>
<DIAttribute name="Parallelism_degree" value="0"/>
<DIAttribute name="allows_both_input_and_output" value="yes"/>
<DIAttribute name="run_once" value="no"/>
<DIAttribute name="use_dataflow_links" value="no"/>
<DIAttribute name="use_datastore_links" value="yes"/>
<DIAttribute name="validation_xform_exists" value="no"/>
<DIAttribute name="validation_xform_stats" value="no"/>
</DIAttributes>
</DIDataflow>
<DIWorkflow name="BUDGET_DIM_UPD_WF" typeId="2" >
<DIUIOptions>
<DIAnnotation name="ANNOTATION_0"><DIAttribute name="ObjectDesc" value="This workflow loads records from the XFRN table and adds the new record into the dimension table. The MD BATCH ID and MD PROCESS ID fields are pulled directly from the source."/>
</DIAnnotation></DIUIOptions>
<DIProperties>
<DIAttribute name="Description" value="The workflow {Target}_DIM_NEW_WF is the workflow responsible for sourcing the records in the XFRN table and adding the new records into the DIM table. The workflow will be composed of the following objects:&#xA;•&#x9;{Target}_DIM_NEW_TRY – The beginning of the TRY/CATCH block in Data Integrator&#xA;•&#x9;{Target}_DIM_NEW_START_SC – The script that calls the custom function that initiates the metadata tracking for the workflow.&#xA;•&#x9;{Target}_DIM_NEW_DF – The dataflow that pulls all new records from the XFRN table and adds them to the target dimension.&#xA;•&#x9;{Target}_DIM_NEW_END_SC – The script that calls the custom function that closes the metadata for the workflow.&#xA;•&#x9;{Target}_DIM_NEW_CATCH – The end of the TRY/CATCH block.  It contains the script that calls the custom function which writes metadata if there is a failure."/>
</DIProperties>
<DIVariables>
<DIElement paramType="LOCAL" name="$L_IDENTIFIER" datatype="VARCHAR" size="100" >
</DIElement>
<DIElement paramType="LOCAL" name="$L_SOURCE_ENTITY" datatype="VARCHAR" size="100" >
</DIElement>
<DIElement paramType="LOCAL" name="$L_DB_OWNER" datatype="VARCHAR" size="100" >
</DIElement>
</DIVariables>
<DISteps>
<DITryStep typeId="13" >
<DIUIOptions>
<DIAttribute name="ObjectDesc" value="the Try of the Try / Catch Block"/>
<DIAttribute name="ui_display_name" value="BUDGET_DIM_UPD_TRY"/>
</DIUIOptions>
<DISteps>
<DIScript>
<DIUIOptions>
<DIAttribute name="ObjectDesc" value="The workflow script object which contains the script to call the custom start workflow function.  This script opens the metadata records that are part of this process"/>
<DIAttribute name="ui_display_name" value="BUDGET_DIM_UPD_START_SC"/>
<DIAttribute name="ui_script_text" value="#-- ABC ---&#xA;$L_IDENTIFIER = workflow_name();&#xA;ABC_STARTWF_FN($L_IDENTIFIER, $G_PROCESS_ID);&#xA;&#xA;#---&#xA;if( $G_DEBUG_MODE = 1)&#xA;Begin&#xA;print(' ');&#xA;print(' ');&#xA;print('The Workfolw ' || workflow_name() || ' is running in Debug mode.');&#xA;print(' ');&#xA;print(' ');&#xA;END&#xA;&#xA;"/>
</DIUIOptions>
<DIAssignmentStep typeId="12" variable="$L_IDENTIFIER" >
<DIExpression isString="true" expr="workflow_name()" >
<FUNCTION_CALL name="workflow_name"  type="DI" />
</DIExpression>
</DIAssignmentStep>
<DIFunctionCallStep typeId="23" >
<DIExpression isString="true" expr="abc_startwf_fn($L_IDENTIFIER, $G_PROCESS_ID)" >
<FUNCTION_CALL name="abc_startwf_fn"  type="DI" >
<VARIABLE_REFERENCE name="$L_IDENTIFIER" />
<VARIABLE_REFERENCE name="$G_PROCESS_ID" />
</FUNCTION_CALL>
</DIExpression>
</DIFunctionCallStep>
<DIIfStep typeId="2" >
<DIExpression isString="true" expr="($G_DEBUG_MODE = 1)" >
<LOGICAL_OP op="EQ">
<VARIABLE_REFERENCE name="$G_DEBUG_MODE" />
<CONSTANT value="1" datatype="INT" />
</LOGICAL_OP>
</DIExpression>
<DIIf>
<DIFunctionCallStep typeId="23" >
<DIExpression isString="true" expr="print(' ')" >
<FUNCTION_CALL name="print"  type="DI" >
<CONSTANT value=" " datatype="VARCHAR" size="1" />
</FUNCTION_CALL>
</DIExpression>
</DIFunctionCallStep>
<DIFunctionCallStep typeId="23" >
<DIExpression isString="true" expr="print(' ')" >
<FUNCTION_CALL name="print"  type="DI" >
<CONSTANT value=" " datatype="VARCHAR" size="1" />
</FUNCTION_CALL>
</DIExpression>
</DIFunctionCallStep>
<DIFunctionCallStep typeId="23" >
<DIExpression isString="true" expr="print((('The Workfolw ' || workflow_name()) || ' is running in Debug mode.'))" >
<FUNCTION_CALL name="print"  type="DI" >
<CONCAT>
<CONCAT>
<CONSTANT value="The Workfolw " datatype="VARCHAR" size="13" />
<FUNCTION_CALL name="workflow_name"  type="DI" />
</CONCAT>
<CONSTANT value=" is running in Debug mode." datatype="VARCHAR" size="26" />
</CONCAT>
</FUNCTION_CALL>
</DIExpression>
</DIFunctionCallStep>
<DIFunctionCallStep typeId="23" >
<DIExpression isString="true" expr="print(' ')" >
<FUNCTION_CALL name="print"  type="DI" >
<CONSTANT value=" " datatype="VARCHAR" size="1" />
</FUNCTION_CALL>
</DIExpression>
</DIFunctionCallStep>
<DIFunctionCallStep typeId="23" >
<DIExpression isString="true" expr="print(' ')" >
<FUNCTION_CALL name="print"  type="DI" >
<CONSTANT value=" " datatype="VARCHAR" size="1" />
</FUNCTION_CALL>
</DIExpression>
</DIFunctionCallStep>
</DIIf>
<DIElse>
</DIElse>
</DIIfStep>
</DIScript>
<DICallStep typeId="1"  calledObjectType="Dataflow" name="BUDGET_DIM_UPD_DF" >
</DICallStep>
<DIScript>
<DIUIOptions>
<DIAttribute name="ObjectDesc" value="The workflow script object that calls the custom end workflow function.  This script closes the metadata records that are part of this process."/>
<DIAttribute name="ui_display_name" value="BUDGET_DIM_UPD_END_SC"/>
<DIAttribute name="ui_script_text" value="#--- ABC ---&#xA;ABC_ENDWF_FN($L_IDENTIFIER, $G_PROCESS_ID);&#xA;&#xA;#---&#xA;if( $G_DEBUG_MODE = 1)&#xA;Begin&#xA;print(' ');&#xA;print(' ');&#xA;print('The Workfolw ' || workflow_name() || ' is completed running in Debug mode.');&#xA;print(' ');&#xA;print(' ');&#xA;END"/>
</DIUIOptions>
<DIFunctionCallStep typeId="23" >
<DIExpression isString="true" expr="abc_endwf_fn($L_IDENTIFIER, $G_PROCESS_ID)" >
<FUNCTION_CALL name="abc_endwf_fn"  type="DI" >
<VARIABLE_REFERENCE name="$L_IDENTIFIER" />
<VARIABLE_REFERENCE name="$G_PROCESS_ID" />
</FUNCTION_CALL>
</DIExpression>
</DIFunctionCallStep>
<DIIfStep typeId="2" >
<DIExpression isString="true" expr="($G_DEBUG_MODE = 1)" >
<LOGICAL_OP op="EQ">
<VARIABLE_REFERENCE name="$G_DEBUG_MODE" />
<CONSTANT value="1" datatype="INT" />
</LOGICAL_OP>
</DIExpression>
<DIIf>
<DIFunctionCallStep typeId="23" >
<DIExpression isString="true" expr="print(' ')" >
<FUNCTION_CALL name="print"  type="DI" >
<CONSTANT value=" " datatype="VARCHAR" size="1" />
</FUNCTION_CALL>
</DIExpression>
</DIFunctionCallStep>
<DIFunctionCallStep typeId="23" >
<DIExpression isString="true" expr="print(' ')" >
<FUNCTION_CALL name="print"  type="DI" >
<CONSTANT value=" " datatype="VARCHAR" size="1" />
</FUNCTION_CALL>
</DIExpression>
</DIFunctionCallStep>
<DIFunctionCallStep typeId="23" >
<DIExpression isString="true" expr="print((('The Workfolw ' || workflow_name()) || ' is completed running in Debug mode.'))" >
<FUNCTION_CALL name="print"  type="DI" >
<CONCAT>
<CONCAT>
<CONSTANT value="The Workfolw " datatype="VARCHAR" size="13" />
<FUNCTION_CALL name="workflow_name"  type="DI" />
</CONCAT>
<CONSTANT value=" is completed running in Debug mode." datatype="VARCHAR" size="36" />
</CONCAT>
</FUNCTION_CALL>
</DIExpression>
</DIFunctionCallStep>
<DIFunctionCallStep typeId="23" >
<DIExpression isString="true" expr="print(' ')" >
<FUNCTION_CALL name="print"  type="DI" >
<CONSTANT value=" " datatype="VARCHAR" size="1" />
</FUNCTION_CALL>
</DIExpression>
</DIFunctionCallStep>
<DIFunctionCallStep typeId="23" >
<DIExpression isString="true" expr="print(' ')" >
<FUNCTION_CALL name="print"  type="DI" >
<CONSTANT value=" " datatype="VARCHAR" size="1" />
</FUNCTION_CALL>
</DIExpression>
</DIFunctionCallStep>
</DIIf>
<DIElse>
</DIElse>
</DIIfStep>
</DIScript>
</DISteps>
<DICatch typeId="20" errorCode="210101" >
<DIUIOptions>
<DIAttribute name="ObjectDesc" value="The workflow catch object is the end of the TRY/CATCH block in BO DS.  This catch block will contain the script object that calls a custom fail workflow function used to write the metadata for failed jobs."/>
<DIAttribute name="ui_display_name" value="BUDGET_DIM_UPD_CATCH"/>
</DIUIOptions>
<DISteps>
<DIScript>
<DIUIOptions>
<DIAttribute name="ui_display_name" value="BUDGET_DIM_UPD_FAIL_SC"/>
<DIAttribute name="ui_script_text" value="#ABC - CALL FUNCTION TO TRACK END OF WORKFLOW&#xA;ABC_FAILWF_FN(workflow_name(), $G_PROCESS_ID, 'Error: \[' || error_number() || '\] ' || error_message());&#xA;&#xA;#--&#xA;print(' ');&#xA;print(' ');&#xA;print('Message from the ' || workflow_name() || '_CATCH Block Script:');&#xA;print('The Workflow ' || workflow_name() || ' has failed to run.');&#xA;print(' ');&#xA;print(' ');"/>
</DIUIOptions>
<DIFunctionCallStep typeId="23" >
<DIExpression isString="true" expr="abc_failwf_fn(workflow_name(), $G_PROCESS_ID, ((('Error: \\[' || error_number()) || '\\] ') || error_message()))" >
<FUNCTION_CALL name="abc_failwf_fn"  type="DI" >
<FUNCTION_CALL name="workflow_name"  type="DI" />
<VARIABLE_REFERENCE name="$G_PROCESS_ID" />
<CONCAT>
<CONCAT>
<CONCAT>
<CONSTANT value="Error: \[" datatype="VARCHAR" size="9" />
<FUNCTION_CALL name="error_number"  type="DI" />
</CONCAT>
<CONSTANT value="\] " datatype="VARCHAR" size="3" />
</CONCAT>
<FUNCTION_CALL name="error_message"  type="DI" />
</CONCAT>
</FUNCTION_CALL>
</DIExpression>
</DIFunctionCallStep>
<DIFunctionCallStep typeId="23" >
<DIExpression isString="true" expr="print(' ')" >
<FUNCTION_CALL name="print"  type="DI" >
<CONSTANT value=" " datatype="VARCHAR" size="1" />
</FUNCTION_CALL>
</DIExpression>
</DIFunctionCallStep>
<DIFunctionCallStep typeId="23" >
<DIExpression isString="true" expr="print(' ')" >
<FUNCTION_CALL name="print"  type="DI" >
<CONSTANT value=" " datatype="VARCHAR" size="1" />
</FUNCTION_CALL>
</DIExpression>
</DIFunctionCallStep>
<DIFunctionCallStep typeId="23" >
<DIExpression isString="true" expr="print((('Message from the ' || workflow_name()) || '_CATCH Block Script:'))" >
<FUNCTION_CALL name="print"  type="DI" >
<CONCAT>
<CONCAT>
<CONSTANT value="Message from the " datatype="VARCHAR" size="17" />
<FUNCTION_CALL name="workflow_name"  type="DI" />
</CONCAT>
<CONSTANT value="_CATCH Block Script:" datatype="VARCHAR" size="20" />
</CONCAT>
</FUNCTION_CALL>
</DIExpression>
</DIFunctionCallStep>
<DIFunctionCallStep typeId="23" >
<DIExpression isString="true" expr="print((('The Workflow ' || workflow_name()) || ' has failed to run.'))" >
<FUNCTION_CALL name="print"  type="DI" >
<CONCAT>
<CONCAT>
<CONSTANT value="The Workflow " datatype="VARCHAR" size="13" />
<FUNCTION_CALL name="workflow_name"  type="DI" />
</CONCAT>
<CONSTANT value=" has failed to run." datatype="VARCHAR" size="19" />
</CONCAT>
</FUNCTION_CALL>
</DIExpression>
</DIFunctionCallStep>
<DIFunctionCallStep typeId="23" >
<DIExpression isString="true" expr="print(' ')" >
<FUNCTION_CALL name="print"  type="DI" >
<CONSTANT value=" " datatype="VARCHAR" size="1" />
</FUNCTION_CALL>
</DIExpression>
</DIFunctionCallStep>
<DIFunctionCallStep typeId="23" >
<DIExpression isString="true" expr="print(' ')" >
<FUNCTION_CALL name="print"  type="DI" >
<CONSTANT value=" " datatype="VARCHAR" size="1" />
</FUNCTION_CALL>
</DIExpression>
</DIFunctionCallStep>
</DIScript>
</DISteps>
</DICatch>
</DITryStep>
</DISteps>
<DIAttributes>
<DIAttribute name="run_once" value="no"/>
<DIAttribute name="unit_of_recovery" value="no"/>
</DIAttributes>
</DIWorkflow>
<DIDataflow name="BUDGET_DIM_UPD_DF" typeId="1" >
<DIProperties>
<DIAttribute name="Description" value="The dataflow is responsible for sourcing the records in the XFRN table and adding the new record into the DIM table"/>
</DIProperties>
<DITransforms>
<DIDatabaseTableSource typeId="22" datastoreName="DWSTAGING_DS" ownerName="DWSTAGING_ALIAS" tableName="BUDGET_DIM_XFRU_V" >
<DIOutputView name="BUDGET_DIM_XFRU_V"  />
<DIAttributes>
<DIAttribute name="array_fetch_size" value="1000"/>
<DIAttribute name="cache" value="yes"/>
<DIAttribute name="connection_port" value="no"/>
<DIAttribute name="enable_partitioning" value="no"/>
<DIAttribute name="name" value="DWSTAGING_DS"/>
<DIAttribute name="package_size" value="0"/>
<DIAttribute name="reader_is_DB2CDC_table" value="no"/>
<DIAttribute name="reader_overflow_file" value="overflow_file"/>
<DIAttribute name="reader_template_table" value="no"/>
<DIAttribute name="reader_use_overflow_file" value="no"/>
<DIAttribute name="table_weight" value="0"/>
</DIAttributes>
</DIDatabaseTableSource>

<DIDatabaseTableTarget typeID="11" bulkLoader="false" datastoreName="DW_DS" ownerName="DW_ALIAS" tableName="BUDGET_DIM" >
<DIInputView name="BUDGET_DIM_XFRU_V"  />
<DIAttributes>
<DIAttribute name="LDRLiveLoad" value="no"/>
<DIAttribute name="Table_Type" value="TABLE"/>
<DIAttribute name="connection_port" value="no"/>
<DIAttribute name="ldr_configuration_enabled" value="yes"/>
<DIAttribute name="ldr_configurations" hasNestedXMLTree ="true">
<LDRConfigurations>
<LDRConfiguration database_type="Microsoft_SQL_Server" database_version="Microsoft SQL Server 2005">
<bulk_ldr_all_rows/>
<bulk_ldr_max_errors/>
<bulk_ldr_rows_per_commit>1000</bulk_ldr_rows_per_commit>
<enable_partitioning>no</enable_partitioning>
<ignore_column_case>yes</ignore_column_case>
<ignore_columns_null>yes</ignore_columns_null>
<ignore_columns_value/>
<loader_auto_correct>yes</loader_auto_correct>
<loader_bulk_load/>
<loader_compare_column>compare_by_name</loader_compare_column>
<loader_delete_map/>
<loader_drop_and_create_table>no</loader_drop_and_create_table>
<loader_insert_map/>
<loader_load_choice>append</loader_load_choice>
<loader_num_parallel_loaders>1</loader_num_parallel_loaders>
<loader_overflow_file>overflow_file</loader_overflow_file>
<loader_post_load1/>
<loader_pre_load1/>
<loader_quote_names>0</loader_quote_names>
<loader_transactional>no</loader_transactional>
<loader_transactional_order>0</loader_transactional_order>
<loader_update_key_columns>yes</loader_update_key_columns>
<loader_update_map/>
<loader_use_user_defined_keys>no</loader_use_user_defined_keys>
<loader_xact_size>1000</loader_xact_size>
<mssql_bulk_ldr_mode>append</mssql_bulk_ldr_mode>
<mssql_bulk_ldr_packet_size>0</mssql_bulk_ldr_packet_size>
<overflow_file_format>write_data</overflow_file_format>
<use_overflow_file>no</use_overflow_file>
<use_unicode_varchar>no</use_unicode_varchar>
<sql_text/>
</LDRConfiguration>
</LDRConfigurations>
</DIAttribute>
<DIAttribute name="loader_template_table" value="no"/>
<DIAttribute name="name" value="DW_DS"/>
<DIAttribute name="use_unicode_varchar" value="no"/>
</DIAttributes>
</DIDatabaseTableTarget>

</DITransforms>
<DIAttributes>
<DIAttribute name="Cache_type" value="pageable_cache"/>
<DIAttribute name="Parallelism_degree" value="0"/>
<DIAttribute name="allows_both_input_and_output" value="yes"/>
<DIAttribute name="run_once" value="no"/>
<DIAttribute name="use_dataflow_links" value="no"/>
<DIAttribute name="use_datastore_links" value="yes"/>
<DIAttribute name="validation_xform_exists" value="no"/>
<DIAttribute name="validation_xform_stats" value="no"/>
</DIAttributes>
</DIDataflow>
<DIWorkflow name="COSTCATEGORY_DIM_WF" typeId="2" >
<DIUIOptions>
<DIAnnotation name="ANNOTATION_0"><DIAttribute name="ObjectDesc" value="This workflow was created in order to house the dimension workflows that push the load ready Dimension XFR tables into the target dimension tables. These workflows are processed in serial; the deletions are first updated in the target with history information, then the updates for SCD1 and SCD2, then the new records are added to the target."/>
</DIAnnotation><DIAttribute name="AutoLayout" value="yes"/>
</DIUIOptions>
<DIProperties>
<DIAttribute name="Description" value="This workflow was created in order to house the dimension workflows that push the load ready XFR tables into the target dimension tables. These workflows are processed in serial; the deletions are first updated in the target with history information, then the updates for SCD1 and SCD2, then the new records are added to the target."/>
</DIProperties>
<DISteps>
<DICallStep typeId="0"  calledObjectType="Workflow" name="COSTCATEGORY_DIM_NEW_WF" >
</DICallStep>
</DISteps>
<DIAttributes>
<DIAttribute name="run_once" value="no"/>
<DIAttribute name="unit_of_recovery" value="no"/>
</DIAttributes>
</DIWorkflow>
<DIWorkflow name="COSTCATEGORY_DIM_NEW_WF" typeId="2" >
<DIUIOptions>
<DIAnnotation name="ANNOTATION_0"><DIAttribute name="ObjectDesc" value="This workflow loads records from the XFRN table and adds the new record into the dimension table. The MD BATCH ID and MD PROCESS ID fields are pulled directly from the source."/>
</DIAnnotation><DIAttribute name="AutoLayout" value="yes"/>
</DIUIOptions>
<DIProperties>
<DIAttribute name="Description" value="The workflow {Target}_DIM_NEW_WF is the workflow responsible for sourcing the records in the XFRN table and adding the new records into the DIM table. The workflow will be composed of the following objects:&#xA;•&#x9;{Target}_DIM_NEW_TRY – The beginning of the TRY/CATCH block in Data Integrator&#xA;•&#x9;{Target}_DIM_NEW_START_SC – The script that calls the custom function that initiates the metadata tracking for the workflow.&#xA;•&#x9;{Target}_DIM_NEW_DF – The dataflow that pulls all new records from the XFRN table and adds them to the target dimension.&#xA;•&#x9;{Target}_DIM_NEW_END_SC – The script that calls the custom function that closes the metadata for the workflow.&#xA;•&#x9;{Target}_DIM_NEW_CATCH – The end of the TRY/CATCH block.  It contains the script that calls the custom function which writes metadata if there is a failure."/>
</DIProperties>
<DIVariables>
<DIElement paramType="LOCAL" name="$L_IDENTIFIER" datatype="VARCHAR" size="100" >
</DIElement>
<DIElement paramType="LOCAL" name="$L_SOURCE_ENTITY" datatype="VARCHAR" size="100" >
</DIElement>
<DIElement paramType="LOCAL" name="$L_DB_OWNER" datatype="VARCHAR" size="100" >
</DIElement>
</DIVariables>
<DISteps>
<DITryStep typeId="13" >
<DIUIOptions>
<DIAttribute name="AutoLayout" value="yes"/>
<DIAttribute name="ObjectDesc" value="the Try of the Try / Catch Block"/>
<DIAttribute name="ui_display_name" value="COSTCATEGORY_DIM_NEW_TRY"/>
</DIUIOptions>
<DISteps>
<DIScript>
<DIUIOptions>
<DIAttribute name="ObjectDesc" value="The workflow script object which contains the script to call the custom start workflow function.  This script opens the metadata records that are part of this process"/>
<DIAttribute name="ui_display_name" value="COSTCATEGORY_DIM_NEW_START_SC"/>
<DIAttribute name="ui_script_text" value="#-- ABC ---&#xA;$L_IDENTIFIER = workflow_name();&#xA;ABC_STARTWF_FN($L_IDENTIFIER, $G_PROCESS_ID);&#xA;&#xA;#---&#xA;if( $G_DEBUG_MODE = 1)&#xA;Begin&#xA;print(' ');&#xA;print(' ');&#xA;print('The Workfolw ' || workflow_name() || ' is running in Debug mode.');&#xA;print(' ');&#xA;print(' ');&#xA;END&#xA;&#xA;"/>
</DIUIOptions>
<DIAssignmentStep typeId="12" variable="$L_IDENTIFIER" >
<DIExpression isString="true" expr="workflow_name()" >
<FUNCTION_CALL name="workflow_name"  type="DI" />
</DIExpression>
</DIAssignmentStep>
<DIFunctionCallStep typeId="23" >
<DIExpression isString="true" expr="abc_startwf_fn($L_IDENTIFIER, $G_PROCESS_ID)" >
<FUNCTION_CALL name="abc_startwf_fn"  type="DI" >
<VARIABLE_REFERENCE name="$L_IDENTIFIER" />
<VARIABLE_REFERENCE name="$G_PROCESS_ID" />
</FUNCTION_CALL>
</DIExpression>
</DIFunctionCallStep>
<DIIfStep typeId="2" >
<DIExpression isString="true" expr="($G_DEBUG_MODE = 1)" >
<LOGICAL_OP op="EQ">
<VARIABLE_REFERENCE name="$G_DEBUG_MODE" />
<CONSTANT value="1" datatype="INT" />
</LOGICAL_OP>
</DIExpression>
<DIIf>
<DIFunctionCallStep typeId="23" >
<DIExpression isString="true" expr="print(' ')" >
<FUNCTION_CALL name="print"  type="DI" >
<CONSTANT value=" " datatype="VARCHAR" size="1" />
</FUNCTION_CALL>
</DIExpression>
</DIFunctionCallStep>
<DIFunctionCallStep typeId="23" >
<DIExpression isString="true" expr="print(' ')" >
<FUNCTION_CALL name="print"  type="DI" >
<CONSTANT value=" " datatype="VARCHAR" size="1" />
</FUNCTION_CALL>
</DIExpression>
</DIFunctionCallStep>
<DIFunctionCallStep typeId="23" >
<DIExpression isString="true" expr="print((('The Workfolw ' || workflow_name()) || ' is running in Debug mode.'))" >
<FUNCTION_CALL name="print"  type="DI" >
<CONCAT>
<CONCAT>
<CONSTANT value="The Workfolw " datatype="VARCHAR" size="13" />
<FUNCTION_CALL name="workflow_name"  type="DI" />
</CONCAT>
<CONSTANT value=" is running in Debug mode." datatype="VARCHAR" size="26" />
</CONCAT>
</FUNCTION_CALL>
</DIExpression>
</DIFunctionCallStep>
<DIFunctionCallStep typeId="23" >
<DIExpression isString="true" expr="print(' ')" >
<FUNCTION_CALL name="print"  type="DI" >
<CONSTANT value=" " datatype="VARCHAR" size="1" />
</FUNCTION_CALL>
</DIExpression>
</DIFunctionCallStep>
<DIFunctionCallStep typeId="23" >
<DIExpression isString="true" expr="print(' ')" >
<FUNCTION_CALL name="print"  type="DI" >
<CONSTANT value=" " datatype="VARCHAR" size="1" />
</FUNCTION_CALL>
</DIExpression>
</DIFunctionCallStep>
</DIIf>
<DIElse>
</DIElse>
</DIIfStep>
</DIScript>
<DICallStep typeId="1"  calledObjectType="Dataflow" name="COSTCATEGORY_DIM_NEW_DF" >
</DICallStep>
<DIScript>
<DIUIOptions>
<DIAttribute name="ObjectDesc" value="The workflow script object that calls the custom end workflow function.  This script closes the metadata records that are part of this process."/>
<DIAttribute name="ui_display_name" value="COSTCATEGORY_DIM_NEW_END_SC"/>
<DIAttribute name="ui_script_text" value="#--- ABC ---&#xA;ABC_ENDWF_FN($L_IDENTIFIER, $G_PROCESS_ID);&#xA;&#xA;#---&#xA;if( $G_DEBUG_MODE = 1)&#xA;Begin&#xA;print(' ');&#xA;print(' ');&#xA;print('The Workfolw ' || workflow_name() || ' is completed running in Debug mode.');&#xA;print(' ');&#xA;print(' ');&#xA;END"/>
</DIUIOptions>
<DIFunctionCallStep typeId="23" >
<DIExpression isString="true" expr="abc_endwf_fn($L_IDENTIFIER, $G_PROCESS_ID)" >
<FUNCTION_CALL name="abc_endwf_fn"  type="DI" >
<VARIABLE_REFERENCE name="$L_IDENTIFIER" />
<VARIABLE_REFERENCE name="$G_PROCESS_ID" />
</FUNCTION_CALL>
</DIExpression>
</DIFunctionCallStep>
<DIIfStep typeId="2" >
<DIExpression isString="true" expr="($G_DEBUG_MODE = 1)" >
<LOGICAL_OP op="EQ">
<VARIABLE_REFERENCE name="$G_DEBUG_MODE" />
<CONSTANT value="1" datatype="INT" />
</LOGICAL_OP>
</DIExpression>
<DIIf>
<DIFunctionCallStep typeId="23" >
<DIExpression isString="true" expr="print(' ')" >
<FUNCTION_CALL name="print"  type="DI" >
<CONSTANT value=" " datatype="VARCHAR" size="1" />
</FUNCTION_CALL>
</DIExpression>
</DIFunctionCallStep>
<DIFunctionCallStep typeId="23" >
<DIExpression isString="true" expr="print(' ')" >
<FUNCTION_CALL name="print"  type="DI" >
<CONSTANT value=" " datatype="VARCHAR" size="1" />
</FUNCTION_CALL>
</DIExpression>
</DIFunctionCallStep>
<DIFunctionCallStep typeId="23" >
<DIExpression isString="true" expr="print((('The Workfolw ' || workflow_name()) || ' is completed running in Debug mode.'))" >
<FUNCTION_CALL name="print"  type="DI" >
<CONCAT>
<CONCAT>
<CONSTANT value="The Workfolw " datatype="VARCHAR" size="13" />
<FUNCTION_CALL name="workflow_name"  type="DI" />
</CONCAT>
<CONSTANT value=" is completed running in Debug mode." datatype="VARCHAR" size="36" />
</CONCAT>
</FUNCTION_CALL>
</DIExpression>
</DIFunctionCallStep>
<DIFunctionCallStep typeId="23" >
<DIExpression isString="true" expr="print(' ')" >
<FUNCTION_CALL name="print"  type="DI" >
<CONSTANT value=" " datatype="VARCHAR" size="1" />
</FUNCTION_CALL>
</DIExpression>
</DIFunctionCallStep>
<DIFunctionCallStep typeId="23" >
<DIExpression isString="true" expr="print(' ')" >
<FUNCTION_CALL name="print"  type="DI" >
<CONSTANT value=" " datatype="VARCHAR" size="1" />
</FUNCTION_CALL>
</DIExpression>
</DIFunctionCallStep>
</DIIf>
<DIElse>
</DIElse>
</DIIfStep>
</DIScript>
</DISteps>
<DICatch typeId="20" errorCode="210101" >
<DIUIOptions>
<DIAttribute name="AutoLayout" value="yes"/>
<DIAttribute name="ObjectDesc" value="The workflow catch object is the end of the TRY/CATCH block in BO DS.  This catch block will contain the script object that calls a custom fail workflow function used to write the metadata for failed jobs."/>
<DIAttribute name="ui_display_name" value="COSTCATEGORY_DIM_NEW_CATCH"/>
</DIUIOptions>
<DISteps>
<DIScript>
<DIUIOptions>
<DIAttribute name="ui_display_name" value="COSTCATEGORY_DIM_FAIL_SC"/>
<DIAttribute name="ui_script_text" value="#ABC - CALL FUNCTION TO TRACK END OF WORKFLOW&#xA;ABC_FAILWF_FN(workflow_name(), $G_PROCESS_ID, 'Error: \[' || error_number() || '\] ' || error_message());&#xA;&#xA;#--&#xA;print(' ');&#xA;print(' ');&#xA;print('Message from the COSTCATEGORY_DIM_NEW_CATCH Block Script:');&#xA;print('The Workflow ' || workflow_name() || ' has failed to run.');&#xA;print(' ');&#xA;print(' ');"/>
</DIUIOptions>
<DIFunctionCallStep typeId="23" >
<DIExpression isString="true" expr="abc_failwf_fn(workflow_name(), $G_PROCESS_ID, ((('Error: \\[' || error_number()) || '\\] ') || error_message()))" >
<FUNCTION_CALL name="abc_failwf_fn"  type="DI" >
<FUNCTION_CALL name="workflow_name"  type="DI" />
<VARIABLE_REFERENCE name="$G_PROCESS_ID" />
<CONCAT>
<CONCAT>
<CONCAT>
<CONSTANT value="Error: \[" datatype="VARCHAR" size="9" />
<FUNCTION_CALL name="error_number"  type="DI" />
</CONCAT>
<CONSTANT value="\] " datatype="VARCHAR" size="3" />
</CONCAT>
<FUNCTION_CALL name="error_message"  type="DI" />
</CONCAT>
</FUNCTION_CALL>
</DIExpression>
</DIFunctionCallStep>
<DIFunctionCallStep typeId="23" >
<DIExpression isString="true" expr="print(' ')" >
<FUNCTION_CALL name="print"  type="DI" >
<CONSTANT value=" " datatype="VARCHAR" size="1" />
</FUNCTION_CALL>
</DIExpression>
</DIFunctionCallStep>
<DIFunctionCallStep typeId="23" >
<DIExpression isString="true" expr="print(' ')" >
<FUNCTION_CALL name="print"  type="DI" >
<CONSTANT value=" " datatype="VARCHAR" size="1" />
</FUNCTION_CALL>
</DIExpression>
</DIFunctionCallStep>
<DIFunctionCallStep typeId="23" >
<DIExpression isString="true" expr="print('Message from the COSTCATEGORY_DIM_NEW_CATCH Block Script:')" >
<FUNCTION_CALL name="print"  type="DI" >
<CONSTANT value="Message from the COSTCATEGORY_DIM_NEW_CATCH Block Script:" datatype="VARCHAR" size="57" />
</FUNCTION_CALL>
</DIExpression>
</DIFunctionCallStep>
<DIFunctionCallStep typeId="23" >
<DIExpression isString="true" expr="print((('The Workflow ' || workflow_name()) || ' has failed to run.'))" >
<FUNCTION_CALL name="print"  type="DI" >
<CONCAT>
<CONCAT>
<CONSTANT value="The Workflow " datatype="VARCHAR" size="13" />
<FUNCTION_CALL name="workflow_name"  type="DI" />
</CONCAT>
<CONSTANT value=" has failed to run." datatype="VARCHAR" size="19" />
</CONCAT>
</FUNCTION_CALL>
</DIExpression>
</DIFunctionCallStep>
<DIFunctionCallStep typeId="23" >
<DIExpression isString="true" expr="print(' ')" >
<FUNCTION_CALL name="print"  type="DI" >
<CONSTANT value=" " datatype="VARCHAR" size="1" />
</FUNCTION_CALL>
</DIExpression>
</DIFunctionCallStep>
<DIFunctionCallStep typeId="23" >
<DIExpression isString="true" expr="print(' ')" >
<FUNCTION_CALL name="print"  type="DI" >
<CONSTANT value=" " datatype="VARCHAR" size="1" />
</FUNCTION_CALL>
</DIExpression>
</DIFunctionCallStep>
</DIScript>
</DISteps>
</DICatch>
</DITryStep>
</DISteps>
<DIAttributes>
<DIAttribute name="run_once" value="no"/>
<DIAttribute name="unit_of_recovery" value="no"/>
</DIAttributes>
</DIWorkflow>
<DIDataflow name="COSTCATEGORY_DIM_NEW_DF" typeId="1" >
<DIUIOptions>
<DIAttribute name="AutoLayout" value="yes"/>
</DIUIOptions>
<DIProperties>
<DIAttribute name="Description" value="The dataflow is responsible for sourcing the records in the XFRN table and adding the new record into the DIM table"/>
</DIProperties>
<DITransforms>
<DIDatabaseTableSource typeId="22" datastoreName="DWSTAGING_DS" ownerName="DWSTAGING_ALIAS" tableName="COSTCATEGORY_DIM_XFRN_V" >
<DIOutputView name="COSTCATEGORY_DIM_XFRN_V"  />
<DIAttributes>
<DIAttribute name="array_fetch_size" value="1000"/>
<DIAttribute name="cache" value="yes"/>
<DIAttribute name="connection_port" value="no"/>
<DIAttribute name="enable_partitioning" value="no"/>
<DIAttribute name="name" value="DWSTAGING_DS"/>
<DIAttribute name="package_size" value="0"/>
<DIAttribute name="reader_is_DB2CDC_table" value="no"/>
<DIAttribute name="reader_overflow_file" value="overflow_file"/>
<DIAttribute name="reader_template_table" value="no"/>
<DIAttribute name="reader_use_overflow_file" value="no"/>
<DIAttribute name="reader_use_trex_transaction" value="no"/>
<DIAttribute name="table_weight" value="0"/>
</DIAttributes>
</DIDatabaseTableSource>

<DIDatabaseTableTarget typeID="11" bulkLoader="false" datastoreName="DW_DS" ownerName="DW_ALIAS" tableName="COSTCATEGORY_DIM" >
<DIInputView name="COSTCATEGORY_DIM_XFRN_V"  />
<DIAttributes>
<DIAttribute name="LDRLiveLoad" value="no"/>
<DIAttribute name="Table_Type" value="TABLE"/>
<DIAttribute name="connection_port" value="no"/>
<DIAttribute name="ldr_configuration_enabled" value="yes"/>
<DIAttribute name="ldr_configurations" hasNestedXMLTree ="true">
<LDRConfigurations>
<LDRConfiguration database_type="Microsoft_SQL_Server" database_version="Microsoft SQL Server 2005">
<auto_correct_using_merge>yes</auto_correct_using_merge>
<bulk_ldr_all_rows/>
<bulk_ldr_max_errors/>
<bulk_ldr_rows_per_commit>1000</bulk_ldr_rows_per_commit>
<enable_partitioning>no</enable_partitioning>
<ignore_column_case>yes</ignore_column_case>
<ignore_columns_null>no</ignore_columns_null>
<ignore_columns_value/>
<loader_auto_correct>no</loader_auto_correct>
<loader_bulk_load/>
<loader_compare_column>compare_by_name</loader_compare_column>
<loader_delete_map/>
<loader_drop_and_create_table>yes</loader_drop_and_create_table>
<loader_insert_map/>
<loader_load_choice>append</loader_load_choice>
<loader_num_parallel_loaders>1</loader_num_parallel_loaders>
<loader_overflow_file>overflow_file</loader_overflow_file>
<loader_post_load1/>
<loader_pre_load1/>
<loader_quote_names>0</loader_quote_names>
<loader_transactional>no</loader_transactional>
<loader_transactional_order>0</loader_transactional_order>
<loader_update_key_columns>no</loader_update_key_columns>
<loader_update_map/>
<loader_use_user_defined_keys>no</loader_use_user_defined_keys>
<loader_xact_size>1000</loader_xact_size>
<mssql_bulk_ldr_mode>append</mssql_bulk_ldr_mode>
<mssql_bulk_ldr_packet_size>0</mssql_bulk_ldr_packet_size>
<overflow_file_format>write_data</overflow_file_format>
<overriding_substitution_parameter_for_tablename/>
<use_overflow_file>no</use_overflow_file>
<use_unicode_varchar>no</use_unicode_varchar>
<sql_text/>
</LDRConfiguration>
</LDRConfigurations>
</DIAttribute>
<DIAttribute name="loader_template_table" value="no"/>
<DIAttribute name="name" value="DW_DS"/>
<DIAttribute name="use_unicode_varchar" value="no"/>
</DIAttributes>
</DIDatabaseTableTarget>

</DITransforms>
<DIAttributes>
<DIAttribute name="Cache_type" value="pageable_cache"/>
<DIAttribute name="Parallelism_degree" value="0"/>
<DIAttribute name="allows_both_input_and_output" value="yes"/>
<DIAttribute name="run_once" value="no"/>
<DIAttribute name="use_dataflow_links" value="no"/>
<DIAttribute name="use_datastore_links" value="yes"/>
<DIAttribute name="validation_xform_exists" value="no"/>
<DIAttribute name="validation_xform_stats" value="no"/>
</DIAttributes>
</DIDataflow>
<DIWorkflow name="ITFUNCTION_DIM_WF" typeId="2" >
<DIUIOptions>
<DIAnnotation name="ANNOTATION_0"><DIAttribute name="ObjectDesc" value="This workflow was created in order to house the dimension workflows that push the load ready Dimension XFR tables into the target dimension tables. These workflows are processed in serial; the deletions are first updated in the target with history information, then the updates for SCD1 and SCD2, then the new records are added to the target."/>
</DIAnnotation></DIUIOptions>
<DIProperties>
<DIAttribute name="Description" value="This workflow was created in order to house the dimension workflows that push the load ready XFR tables into the target dimension tables. These workflows are processed in serial; the deletions are first updated in the target with history information, then the updates for SCD1 and SCD2, then the new records are added to the target."/>
</DIProperties>
<DISteps>
<DICallStep typeId="0"  calledObjectType="Workflow" name="ITFUNCTION_DIM_NEW_WF" >
</DICallStep>
</DISteps>
<DIAttributes>
<DIAttribute name="run_once" value="no"/>
<DIAttribute name="unit_of_recovery" value="no"/>
</DIAttributes>
</DIWorkflow>
<DIWorkflow name="ITFUNCTION_DIM_NEW_WF" typeId="2" >
<DIUIOptions>
<DIAnnotation name="ANNOTATION_0"><DIAttribute name="ObjectDesc" value="This workflow loads records from the XFRN table and adds the new record into the dimension table. The MD BATCH ID and MD PROCESS ID fields are pulled directly from the source."/>
</DIAnnotation></DIUIOptions>
<DIProperties>
<DIAttribute name="Description" value="The workflow {Target}_DIM_NEW_WF is the workflow responsible for sourcing the records in the XFRN table and adding the new records into the DIM table. The workflow will be composed of the following objects:&#xA;•&#x9;{Target}_DIM_NEW_TRY – The beginning of the TRY/CATCH block in Data Integrator&#xA;•&#x9;{Target}_DIM_NEW_START_SC – The script that calls the custom function that initiates the metadata tracking for the workflow.&#xA;•&#x9;{Target}_DIM_NEW_DF – The dataflow that pulls all new records from the XFRN table and adds them to the target dimension.&#xA;•&#x9;{Target}_DIM_NEW_END_SC – The script that calls the custom function that closes the metadata for the workflow.&#xA;•&#x9;{Target}_DIM_NEW_CATCH – The end of the TRY/CATCH block.  It contains the script that calls the custom function which writes metadata if there is a failure."/>
</DIProperties>
<DIVariables>
<DIElement paramType="LOCAL" name="$L_IDENTIFIER" datatype="VARCHAR" size="100" >
</DIElement>
<DIElement paramType="LOCAL" name="$L_SOURCE_ENTITY" datatype="VARCHAR" size="100" >
</DIElement>
<DIElement paramType="LOCAL" name="$L_DB_OWNER" datatype="VARCHAR" size="100" >
</DIElement>
</DIVariables>
<DISteps>
<DITryStep typeId="13" >
<DIUIOptions>
<DIAttribute name="ObjectDesc" value="the Try of the Try / Catch Block"/>
<DIAttribute name="ui_display_name" value="ITFUNCTION_DIM_NEW_TRY"/>
</DIUIOptions>
<DISteps>
<DIScript>
<DIUIOptions>
<DIAttribute name="ObjectDesc" value="The workflow script object which contains the script to call the custom start workflow function.  This script opens the metadata records that are part of this process"/>
<DIAttribute name="ui_display_name" value="ITFUNCTION_DIM_NEW_START_SC"/>
<DIAttribute name="ui_script_text" value="#-- ABC ---&#xA;$L_IDENTIFIER = workflow_name();&#xA;ABC_STARTWF_FN($L_IDENTIFIER, $G_PROCESS_ID);&#xA;&#xA;#---&#xA;if( $G_DEBUG_MODE = 1)&#xA;Begin&#xA;print(' ');&#xA;print(' ');&#xA;print('The Workfolw ' || workflow_name() || ' is running in Debug mode.');&#xA;print(' ');&#xA;print(' ');&#xA;END&#xA;&#xA;"/>
</DIUIOptions>
<DIAssignmentStep typeId="12" variable="$L_IDENTIFIER" >
<DIExpression isString="true" expr="workflow_name()" >
<FUNCTION_CALL name="workflow_name"  type="DI" />
</DIExpression>
</DIAssignmentStep>
<DIFunctionCallStep typeId="23" >
<DIExpression isString="true" expr="abc_startwf_fn($L_IDENTIFIER, $G_PROCESS_ID)" >
<FUNCTION_CALL name="abc_startwf_fn"  type="DI" >
<VARIABLE_REFERENCE name="$L_IDENTIFIER" />
<VARIABLE_REFERENCE name="$G_PROCESS_ID" />
</FUNCTION_CALL>
</DIExpression>
</DIFunctionCallStep>
<DIIfStep typeId="2" >
<DIExpression isString="true" expr="($G_DEBUG_MODE = 1)" >
<LOGICAL_OP op="EQ">
<VARIABLE_REFERENCE name="$G_DEBUG_MODE" />
<CONSTANT value="1" datatype="INT" />
</LOGICAL_OP>
</DIExpression>
<DIIf>
<DIFunctionCallStep typeId="23" >
<DIExpression isString="true" expr="print(' ')" >
<FUNCTION_CALL name="print"  type="DI" >
<CONSTANT value=" " datatype="VARCHAR" size="1" />
</FUNCTION_CALL>
</DIExpression>
</DIFunctionCallStep>
<DIFunctionCallStep typeId="23" >
<DIExpression isString="true" expr="print(' ')" >
<FUNCTION_CALL name="print"  type="DI" >
<CONSTANT value=" " datatype="VARCHAR" size="1" />
</FUNCTION_CALL>
</DIExpression>
</DIFunctionCallStep>
<DIFunctionCallStep typeId="23" >
<DIExpression isString="true" expr="print((('The Workfolw ' || workflow_name()) || ' is running in Debug mode.'))" >
<FUNCTION_CALL name="print"  type="DI" >
<CONCAT>
<CONCAT>
<CONSTANT value="The Workfolw " datatype="VARCHAR" size="13" />
<FUNCTION_CALL name="workflow_name"  type="DI" />
</CONCAT>
<CONSTANT value=" is running in Debug mode." datatype="VARCHAR" size="26" />
</CONCAT>
</FUNCTION_CALL>
</DIExpression>
</DIFunctionCallStep>
<DIFunctionCallStep typeId="23" >
<DIExpression isString="true" expr="print(' ')" >
<FUNCTION_CALL name="print"  type="DI" >
<CONSTANT value=" " datatype="VARCHAR" size="1" />
</FUNCTION_CALL>
</DIExpression>
</DIFunctionCallStep>
<DIFunctionCallStep typeId="23" >
<DIExpression isString="true" expr="print(' ')" >
<FUNCTION_CALL name="print"  type="DI" >
<CONSTANT value=" " datatype="VARCHAR" size="1" />
</FUNCTION_CALL>
</DIExpression>
</DIFunctionCallStep>
</DIIf>
</DIIfStep>
</DIScript>
<DICallStep typeId="1"  calledObjectType="Dataflow" name="ITFUNCTION_DIM_NEW_DF" >
</DICallStep>
<DIScript>
<DIUIOptions>
<DIAttribute name="ObjectDesc" value="The workflow script object that calls the custom end workflow function.  This script closes the metadata records that are part of this process."/>
<DIAttribute name="ui_display_name" value="ITFUNCTION_DIM_NEW_END_SC"/>
<DIAttribute name="ui_script_text" value="#--- ABC ---&#xA;ABC_ENDWF_FN($L_IDENTIFIER, $G_PROCESS_ID);&#xA;&#xA;#---&#xA;if( $G_DEBUG_MODE = 1)&#xA;Begin&#xA;print(' ');&#xA;print(' ');&#xA;print('The Workfolw ' || workflow_name() || ' is completed running in Debug mode.');&#xA;print(' ');&#xA;print(' ');&#xA;END"/>
</DIUIOptions>
<DIFunctionCallStep typeId="23" >
<DIExpression isString="true" expr="abc_endwf_fn($L_IDENTIFIER, $G_PROCESS_ID)" >
<FUNCTION_CALL name="abc_endwf_fn"  type="DI" >
<VARIABLE_REFERENCE name="$L_IDENTIFIER" />
<VARIABLE_REFERENCE name="$G_PROCESS_ID" />
</FUNCTION_CALL>
</DIExpression>
</DIFunctionCallStep>
<DIIfStep typeId="2" >
<DIExpression isString="true" expr="($G_DEBUG_MODE = 1)" >
<LOGICAL_OP op="EQ">
<VARIABLE_REFERENCE name="$G_DEBUG_MODE" />
<CONSTANT value="1" datatype="INT" />
</LOGICAL_OP>
</DIExpression>
<DIIf>
<DIFunctionCallStep typeId="23" >
<DIExpression isString="true" expr="print(' ')" >
<FUNCTION_CALL name="print"  type="DI" >
<CONSTANT value=" " datatype="VARCHAR" size="1" />
</FUNCTION_CALL>
</DIExpression>
</DIFunctionCallStep>
<DIFunctionCallStep typeId="23" >
<DIExpression isString="true" expr="print(' ')" >
<FUNCTION_CALL name="print"  type="DI" >
<CONSTANT value=" " datatype="VARCHAR" size="1" />
</FUNCTION_CALL>
</DIExpression>
</DIFunctionCallStep>
<DIFunctionCallStep typeId="23" >
<DIExpression isString="true" expr="print((('The Workfolw ' || workflow_name()) || ' is completed running in Debug mode.'))" >
<FUNCTION_CALL name="print"  type="DI" >
<CONCAT>
<CONCAT>
<CONSTANT value="The Workfolw " datatype="VARCHAR" size="13" />
<FUNCTION_CALL name="workflow_name"  type="DI" />
</CONCAT>
<CONSTANT value=" is completed running in Debug mode." datatype="VARCHAR" size="36" />
</CONCAT>
</FUNCTION_CALL>
</DIExpression>
</DIFunctionCallStep>
<DIFunctionCallStep typeId="23" >
<DIExpression isString="true" expr="print(' ')" >
<FUNCTION_CALL name="print"  type="DI" >
<CONSTANT value=" " datatype="VARCHAR" size="1" />
</FUNCTION_CALL>
</DIExpression>
</DIFunctionCallStep>
<DIFunctionCallStep typeId="23" >
<DIExpression isString="true" expr="print(' ')" >
<FUNCTION_CALL name="print"  type="DI" >
<CONSTANT value=" " datatype="VARCHAR" size="1" />
</FUNCTION_CALL>
</DIExpression>
</DIFunctionCallStep>
</DIIf>
</DIIfStep>
</DIScript>
</DISteps>
<DICatch typeId="20" errorCode="210101" >
<DIUIOptions>
<DIAttribute name="ObjectDesc" value="The workflow catch object is the end of the TRY/CATCH block in BO DS.  This catch block will contain the script object that calls a custom fail workflow function used to write the metadata for failed jobs."/>
<DIAttribute name="ui_display_name" value="ITFUNCTION_DIM_NEW_CATCH"/>
</DIUIOptions>
<DISteps>
<DIScript>
<DIUIOptions>
<DIAttribute name="ui_display_name" value="ITFUNCTION_DIM_FAIL_SC"/>
<DIAttribute name="ui_script_text" value="#ABC - CALL FUNCTION TO TRACK END OF WORKFLOW&#xA;ABC_FAILWF_FN(workflow_name(), $G_PROCESS_ID, 'Error: \[' || error_number() || '\] ' || error_message());&#xA;&#xA;#--&#xA;print(' ');&#xA;print(' ');&#xA;print('Message from the ' || workflow_name() || '_CATCH Block Script:');&#xA;print('The Workflow ' || workflow_name() || ' has failed to run.');&#xA;print(' ');&#xA;print(' ');"/>
</DIUIOptions>
<DIFunctionCallStep typeId="23" >
<DIExpression isString="true" expr="abc_failwf_fn(workflow_name(), $G_PROCESS_ID, ((('Error: \\[' || error_number()) || '\\] ') || error_message()))" >
<FUNCTION_CALL name="abc_failwf_fn"  type="DI" >
<FUNCTION_CALL name="workflow_name"  type="DI" />
<VARIABLE_REFERENCE name="$G_PROCESS_ID" />
<CONCAT>
<CONCAT>
<CONCAT>
<CONSTANT value="Error: \[" datatype="VARCHAR" size="9" />
<FUNCTION_CALL name="error_number"  type="DI" />
</CONCAT>
<CONSTANT value="\] " datatype="VARCHAR" size="3" />
</CONCAT>
<FUNCTION_CALL name="error_message"  type="DI" />
</CONCAT>
</FUNCTION_CALL>
</DIExpression>
</DIFunctionCallStep>
<DIFunctionCallStep typeId="23" >
<DIExpression isString="true" expr="print(' ')" >
<FUNCTION_CALL name="print"  type="DI" >
<CONSTANT value=" " datatype="VARCHAR" size="1" />
</FUNCTION_CALL>
</DIExpression>
</DIFunctionCallStep>
<DIFunctionCallStep typeId="23" >
<DIExpression isString="true" expr="print(' ')" >
<FUNCTION_CALL name="print"  type="DI" >
<CONSTANT value=" " datatype="VARCHAR" size="1" />
</FUNCTION_CALL>
</DIExpression>
</DIFunctionCallStep>
<DIFunctionCallStep typeId="23" >
<DIExpression isString="true" expr="print((('Message from the ' || workflow_name()) || '_CATCH Block Script:'))" >
<FUNCTION_CALL name="print"  type="DI" >
<CONCAT>
<CONCAT>
<CONSTANT value="Message from the " datatype="VARCHAR" size="17" />
<FUNCTION_CALL name="workflow_name"  type="DI" />
</CONCAT>
<CONSTANT value="_CATCH Block Script:" datatype="VARCHAR" size="20" />
</CONCAT>
</FUNCTION_CALL>
</DIExpression>
</DIFunctionCallStep>
<DIFunctionCallStep typeId="23" >
<DIExpression isString="true" expr="print((('The Workflow ' || workflow_name()) || ' has failed to run.'))" >
<FUNCTION_CALL name="print"  type="DI" >
<CONCAT>
<CONCAT>
<CONSTANT value="The Workflow " datatype="VARCHAR" size="13" />
<FUNCTION_CALL name="workflow_name"  type="DI" />
</CONCAT>
<CONSTANT value=" has failed to run." datatype="VARCHAR" size="19" />
</CONCAT>
</FUNCTION_CALL>
</DIExpression>
</DIFunctionCallStep>
<DIFunctionCallStep typeId="23" >
<DIExpression isString="true" expr="print(' ')" >
<FUNCTION_CALL name="print"  type="DI" >
<CONSTANT value=" " datatype="VARCHAR" size="1" />
</FUNCTION_CALL>
</DIExpression>
</DIFunctionCallStep>
<DIFunctionCallStep typeId="23" >
<DIExpression isString="true" expr="print(' ')" >
<FUNCTION_CALL name="print"  type="DI" >
<CONSTANT value=" " datatype="VARCHAR" size="1" />
</FUNCTION_CALL>
</DIExpression>
</DIFunctionCallStep>
</DIScript>
</DISteps>
</DICatch>
</DITryStep>
</DISteps>
<DIAttributes>
<DIAttribute name="run_once" value="no"/>
<DIAttribute name="unit_of_recovery" value="no"/>
</DIAttributes>
</DIWorkflow>
<DIDataflow name="ITFUNCTION_DIM_NEW_DF" typeId="1" >
<DIProperties>
<DIAttribute name="Description" value="The dataflow is responsible for sourcing the records in the XFRN table and adding the new record into the DIM table"/>
</DIProperties>
<DITransforms>
<DIDatabaseTableTarget typeID="11" bulkLoader="false" datastoreName="DW_DS" ownerName="DW_ALIAS" tableName="ITFUNCTION_DIM" >
<DIInputView name="ITFUNCTION_DIM_XFRN_V"  />
<DIAttributes>
<DIAttribute name="LDRLiveLoad" value="no"/>
<DIAttribute name="Table_Type" value="TABLE"/>
<DIAttribute name="connection_port" value="no"/>
<DIAttribute name="ldr_configuration_enabled" value="yes"/>
<DIAttribute name="ldr_configurations" hasNestedXMLTree ="true">

<LDRConfigurations>
<LDRConfiguration database_type="Microsoft_SQL_Server" database_version="Microsoft SQL Server 2005">
<bulk_ldr_all_rows></bulk_ldr_all_rows>
<bulk_ldr_max_errors></bulk_ldr_max_errors>
<bulk_ldr_rows_per_commit>1000</bulk_ldr_rows_per_commit>
<enable_partitioning>no</enable_partitioning>
<ignore_column_case>yes</ignore_column_case>
<ignore_columns_null>no</ignore_columns_null>
<ignore_columns_value></ignore_columns_value>
<loader_auto_correct>no</loader_auto_correct>
<loader_bulk_load></loader_bulk_load>
<loader_compare_column>compare_by_name</loader_compare_column>
<loader_delete_map></loader_delete_map>
<loader_drop_and_create_table>yes</loader_drop_and_create_table>
<loader_insert_map></loader_insert_map>
<loader_load_choice>append</loader_load_choice>
<loader_num_parallel_loaders>1</loader_num_parallel_loaders>
<loader_overflow_file>overflow_file</loader_overflow_file>
<loader_post_load1></loader_post_load1>
<loader_pre_load1></loader_pre_load1>
<loader_quote_names>0</loader_quote_names>
<loader_transactional>no</loader_transactional>
<loader_transactional_order>0</loader_transactional_order>
<loader_update_key_columns>no</loader_update_key_columns>
<loader_update_map></loader_update_map>
<loader_use_user_defined_keys>no</loader_use_user_defined_keys>
<loader_xact_size>1000</loader_xact_size>
<mssql_bulk_ldr_mode>append</mssql_bulk_ldr_mode>
<mssql_bulk_ldr_packet_size>0</mssql_bulk_ldr_packet_size>
<overflow_file_format>write_data</overflow_file_format>
<use_overflow_file>no</use_overflow_file>
<use_unicode_varchar>no</use_unicode_varchar>
<sql_text></sql_text>
</LDRConfiguration>
</LDRConfigurations>
</DIAttribute>
<DIAttribute name="loader_template_table" value="no"/>
<DIAttribute name="name" value="DW_DS"/>
<DIAttribute name="use_unicode_varchar" value="no"/>
</DIAttributes>
</DIDatabaseTableTarget>

<DIDatabaseTableSource typeId="22" datastoreName="DWSTAGING_DS" ownerName="DWSTAGING_ALIAS" tableName="ITFUNCTION_DIM_XFRN_V" >
<DIOutputView name="ITFUNCTION_DIM_XFRN_V"  />
<DIAttributes>
<DIAttribute name="array_fetch_size" value="1000"/>
<DIAttribute name="cache" value="yes"/>
<DIAttribute name="connection_port" value="no"/>
<DIAttribute name="enable_partitioning" value="no"/>
<DIAttribute name="name" value="DWSTAGING_DS"/>
<DIAttribute name="package_size" value="0"/>
<DIAttribute name="reader_is_DB2CDC_table" value="no"/>
<DIAttribute name="reader_overflow_file" value="overflow_file"/>
<DIAttribute name="reader_template_table" value="no"/>
<DIAttribute name="reader_use_overflow_file" value="no"/>
<DIAttribute name="table_weight" value="0"/>
</DIAttributes>
</DIDatabaseTableSource>

</DITransforms>
<DIAttributes>
<DIAttribute name="Cache_type" value="pageable_cache"/>
<DIAttribute name="Parallelism_degree" value="0"/>
<DIAttribute name="allows_both_input_and_output" value="yes"/>
<DIAttribute name="run_once" value="no"/>
<DIAttribute name="use_dataflow_links" value="no"/>
<DIAttribute name="use_datastore_links" value="yes"/>
<DIAttribute name="validation_xform_exists" value="no"/>
<DIAttribute name="validation_xform_stats" value="no"/>
</DIAttributes>
</DIDataflow>
<DIWorkflow name="MEASURETYPE_DIM_WF" typeId="2" >
<DIUIOptions>
<DIAnnotation name="ANNOTATION_0"><DIAttribute name="ObjectDesc" value="This workflow was created in order to house the dimension workflows that push the load ready Dimension XFR tables into the target dimension tables. These workflows are processed in serial; the deletions are first updated in the target with history information, then the updates for SCD1 and SCD2, then the new records are added to the target."/>
</DIAnnotation></DIUIOptions>
<DIProperties>
<DIAttribute name="Description" value="This workflow was created in order to house the dimension workflows that push the load ready XFR tables into the target dimension tables. These workflows are processed in serial; the deletions are first updated in the target with history information, then the updates for SCD1 and SCD2, then the new records are added to the target."/>
</DIProperties>
<DISteps>
<DICallStep typeId="0"  calledObjectType="Workflow" name="MEASURETYPE_DIM_NEW_WF" >
</DICallStep>
<DICallStep typeId="0"  calledObjectType="Workflow" name="MEASURETYPE_DIM_UPD_WF" >
</DICallStep>
</DISteps>
<DIAttributes>
<DIAttribute name="run_once" value="no"/>
<DIAttribute name="unit_of_recovery" value="no"/>
</DIAttributes>
</DIWorkflow>
<DIWorkflow name="MEASURETYPE_DIM_NEW_WF" typeId="2" >
<DIUIOptions>
<DIAnnotation name="ANNOTATION_0"><DIAttribute name="ObjectDesc" value="This workflow loads records from the XFRN table and adds the new record into the dimension table. The MD BATCH ID and MD PROCESS ID fields are pulled directly from the source."/>
</DIAnnotation></DIUIOptions>
<DIProperties>
<DIAttribute name="Description" value="The workflow {Target}_DIM_NEW_WF is the workflow responsible for sourcing the records in the XFRN table and adding the new records into the DIM table. The workflow will be composed of the following objects:&#xA;•&#x9;{Target}_DIM_NEW_TRY – The beginning of the TRY/CATCH block in Data Integrator&#xA;•&#x9;{Target}_DIM_NEW_START_SC – The script that calls the custom function that initiates the metadata tracking for the workflow.&#xA;•&#x9;{Target}_DIM_NEW_DF – The dataflow that pulls all new records from the XFRN table and adds them to the target dimension.&#xA;•&#x9;{Target}_DIM_NEW_END_SC – The script that calls the custom function that closes the metadata for the workflow.&#xA;•&#x9;{Target}_DIM_NEW_CATCH – The end of the TRY/CATCH block.  It contains the script that calls the custom function which writes metadata if there is a failure."/>
</DIProperties>
<DIVariables>
<DIElement paramType="LOCAL" name="$L_IDENTIFIER" datatype="VARCHAR" size="100" >
</DIElement>
<DIElement paramType="LOCAL" name="$L_SOURCE_ENTITY" datatype="VARCHAR" size="100" >
</DIElement>
<DIElement paramType="LOCAL" name="$L_DB_OWNER" datatype="VARCHAR" size="100" >
</DIElement>
</DIVariables>
<DISteps>
<DITryStep typeId="13" >
<DIUIOptions>
<DIAttribute name="ObjectDesc" value="the Try of the Try / Catch Block"/>
<DIAttribute name="ui_display_name" value="MEASURETYPE_DIM_NEW_TRY"/>
</DIUIOptions>
<DISteps>
<DIScript>
<DIUIOptions>
<DIAttribute name="ObjectDesc" value="The workflow script object which contains the script to call the custom start workflow function.  This script opens the metadata records that are part of this process"/>
<DIAttribute name="ui_display_name" value="MEASURETYPE_DIM_NEW_START_SC"/>
<DIAttribute name="ui_script_text" value="#-- ABC ---&#xA;$L_IDENTIFIER = workflow_name();&#xA;ABC_STARTWF_FN($L_IDENTIFIER, $G_PROCESS_ID);&#xA;&#xA;#---&#xA;if( $G_DEBUG_MODE = 1)&#xA;Begin&#xA;print(' ');&#xA;print(' ');&#xA;print('The Workfolw ' || workflow_name() || ' is running in Debug mode.');&#xA;print(' ');&#xA;print(' ');&#xA;END&#xA;&#xA;"/>
</DIUIOptions>
<DIAssignmentStep typeId="12" variable="$L_IDENTIFIER" >
<DIExpression isString="true" expr="workflow_name()" >
<FUNCTION_CALL name="workflow_name"  type="DI" />
</DIExpression>
</DIAssignmentStep>
<DIFunctionCallStep typeId="23" >
<DIExpression isString="true" expr="abc_startwf_fn($L_IDENTIFIER, $G_PROCESS_ID)" >
<FUNCTION_CALL name="abc_startwf_fn"  type="DI" >
<VARIABLE_REFERENCE name="$L_IDENTIFIER" />
<VARIABLE_REFERENCE name="$G_PROCESS_ID" />
</FUNCTION_CALL>
</DIExpression>
</DIFunctionCallStep>
<DIIfStep typeId="2" >
<DIExpression isString="true" expr="($G_DEBUG_MODE = 1)" >
<LOGICAL_OP op="EQ">
<VARIABLE_REFERENCE name="$G_DEBUG_MODE" />
<CONSTANT value="1" datatype="INT" />
</LOGICAL_OP>
</DIExpression>
<DIIf>
<DIFunctionCallStep typeId="23" >
<DIExpression isString="true" expr="print(' ')" >
<FUNCTION_CALL name="print"  type="DI" >
<CONSTANT value=" " datatype="VARCHAR" size="1" />
</FUNCTION_CALL>
</DIExpression>
</DIFunctionCallStep>
<DIFunctionCallStep typeId="23" >
<DIExpression isString="true" expr="print(' ')" >
<FUNCTION_CALL name="print"  type="DI" >
<CONSTANT value=" " datatype="VARCHAR" size="1" />
</FUNCTION_CALL>
</DIExpression>
</DIFunctionCallStep>
<DIFunctionCallStep typeId="23" >
<DIExpression isString="true" expr="print((('The Workfolw ' || workflow_name()) || ' is running in Debug mode.'))" >
<FUNCTION_CALL name="print"  type="DI" >
<CONCAT>
<CONCAT>
<CONSTANT value="The Workfolw " datatype="VARCHAR" size="13" />
<FUNCTION_CALL name="workflow_name"  type="DI" />
</CONCAT>
<CONSTANT value=" is running in Debug mode." datatype="VARCHAR" size="26" />
</CONCAT>
</FUNCTION_CALL>
</DIExpression>
</DIFunctionCallStep>
<DIFunctionCallStep typeId="23" >
<DIExpression isString="true" expr="print(' ')" >
<FUNCTION_CALL name="print"  type="DI" >
<CONSTANT value=" " datatype="VARCHAR" size="1" />
</FUNCTION_CALL>
</DIExpression>
</DIFunctionCallStep>
<DIFunctionCallStep typeId="23" >
<DIExpression isString="true" expr="print(' ')" >
<FUNCTION_CALL name="print"  type="DI" >
<CONSTANT value=" " datatype="VARCHAR" size="1" />
</FUNCTION_CALL>
</DIExpression>
</DIFunctionCallStep>
</DIIf>
</DIIfStep>
</DIScript>
<DICallStep typeId="1"  calledObjectType="Dataflow" name="MEASURETYPE_DIM_NEW_DF" >
</DICallStep>
<DIScript>
<DIUIOptions>
<DIAttribute name="ObjectDesc" value="The workflow script object that calls the custom end workflow function.  This script closes the metadata records that are part of this process."/>
<DIAttribute name="ui_display_name" value="MEASURETYPE_DIM_NEW_END_SC"/>
<DIAttribute name="ui_script_text" value="#--- ABC ---&#xA;ABC_ENDWF_FN($L_IDENTIFIER, $G_PROCESS_ID);&#xA;&#xA;#---&#xA;if( $G_DEBUG_MODE = 1)&#xA;Begin&#xA;print(' ');&#xA;print(' ');&#xA;print('The Workfolw ' || workflow_name() || ' is completed running in Debug mode.');&#xA;print(' ');&#xA;print(' ');&#xA;END"/>
</DIUIOptions>
<DIFunctionCallStep typeId="23" >
<DIExpression isString="true" expr="abc_endwf_fn($L_IDENTIFIER, $G_PROCESS_ID)" >
<FUNCTION_CALL name="abc_endwf_fn"  type="DI" >
<VARIABLE_REFERENCE name="$L_IDENTIFIER" />
<VARIABLE_REFERENCE name="$G_PROCESS_ID" />
</FUNCTION_CALL>
</DIExpression>
</DIFunctionCallStep>
<DIIfStep typeId="2" >
<DIExpression isString="true" expr="($G_DEBUG_MODE = 1)" >
<LOGICAL_OP op="EQ">
<VARIABLE_REFERENCE name="$G_DEBUG_MODE" />
<CONSTANT value="1" datatype="INT" />
</LOGICAL_OP>
</DIExpression>
<DIIf>
<DIFunctionCallStep typeId="23" >
<DIExpression isString="true" expr="print(' ')" >
<FUNCTION_CALL name="print"  type="DI" >
<CONSTANT value=" " datatype="VARCHAR" size="1" />
</FUNCTION_CALL>
</DIExpression>
</DIFunctionCallStep>
<DIFunctionCallStep typeId="23" >
<DIExpression isString="true" expr="print(' ')" >
<FUNCTION_CALL name="print"  type="DI" >
<CONSTANT value=" " datatype="VARCHAR" size="1" />
</FUNCTION_CALL>
</DIExpression>
</DIFunctionCallStep>
<DIFunctionCallStep typeId="23" >
<DIExpression isString="true" expr="print((('The Workfolw ' || workflow_name()) || ' is completed running in Debug mode.'))" >
<FUNCTION_CALL name="print"  type="DI" >
<CONCAT>
<CONCAT>
<CONSTANT value="The Workfolw " datatype="VARCHAR" size="13" />
<FUNCTION_CALL name="workflow_name"  type="DI" />
</CONCAT>
<CONSTANT value=" is completed running in Debug mode." datatype="VARCHAR" size="36" />
</CONCAT>
</FUNCTION_CALL>
</DIExpression>
</DIFunctionCallStep>
<DIFunctionCallStep typeId="23" >
<DIExpression isString="true" expr="print(' ')" >
<FUNCTION_CALL name="print"  type="DI" >
<CONSTANT value=" " datatype="VARCHAR" size="1" />
</FUNCTION_CALL>
</DIExpression>
</DIFunctionCallStep>
<DIFunctionCallStep typeId="23" >
<DIExpression isString="true" expr="print(' ')" >
<FUNCTION_CALL name="print"  type="DI" >
<CONSTANT value=" " datatype="VARCHAR" size="1" />
</FUNCTION_CALL>
</DIExpression>
</DIFunctionCallStep>
</DIIf>
</DIIfStep>
</DIScript>
</DISteps>
<DICatch typeId="20" errorCode="210101" >
<DIUIOptions>
<DIAttribute name="ObjectDesc" value="The workflow catch object is the end of the TRY/CATCH block in BO DS.  This catch block will contain the script object that calls a custom fail workflow function used to write the metadata for failed jobs."/>
<DIAttribute name="ui_display_name" value="MEASURETYPE_DIM_NEW_CATCH"/>
</DIUIOptions>
<DISteps>
<DIScript>
<DIUIOptions>
<DIAttribute name="ui_display_name" value="MEASURETYPE_DIM_FAIL_SC"/>
<DIAttribute name="ui_script_text" value="#ABC - CALL FUNCTION TO TRACK END OF WORKFLOW&#xA;ABC_FAILWF_FN(workflow_name(), $G_PROCESS_ID, 'Error: \[' || error_number() || '\] ' || error_message());&#xA;&#xA;#--&#xA;print(' ');&#xA;print(' ');&#xA;print('Message from the ' || workflow_name() || '_CATCH Block Script:');&#xA;print('The Workflow ' || workflow_name() || ' has failed to run.');&#xA;print(' ');&#xA;print(' ');"/>
</DIUIOptions>
<DIFunctionCallStep typeId="23" >
<DIExpression isString="true" expr="abc_failwf_fn(workflow_name(), $G_PROCESS_ID, ((('Error: \\[' || error_number()) || '\\] ') || error_message()))" >
<FUNCTION_CALL name="abc_failwf_fn"  type="DI" >
<FUNCTION_CALL name="workflow_name"  type="DI" />
<VARIABLE_REFERENCE name="$G_PROCESS_ID" />
<CONCAT>
<CONCAT>
<CONCAT>
<CONSTANT value="Error: \[" datatype="VARCHAR" size="9" />
<FUNCTION_CALL name="error_number"  type="DI" />
</CONCAT>
<CONSTANT value="\] " datatype="VARCHAR" size="3" />
</CONCAT>
<FUNCTION_CALL name="error_message"  type="DI" />
</CONCAT>
</FUNCTION_CALL>
</DIExpression>
</DIFunctionCallStep>
<DIFunctionCallStep typeId="23" >
<DIExpression isString="true" expr="print(' ')" >
<FUNCTION_CALL name="print"  type="DI" >
<CONSTANT value=" " datatype="VARCHAR" size="1" />
</FUNCTION_CALL>
</DIExpression>
</DIFunctionCallStep>
<DIFunctionCallStep typeId="23" >
<DIExpression isString="true" expr="print(' ')" >
<FUNCTION_CALL name="print"  type="DI" >
<CONSTANT value=" " datatype="VARCHAR" size="1" />
</FUNCTION_CALL>
</DIExpression>
</DIFunctionCallStep>
<DIFunctionCallStep typeId="23" >
<DIExpression isString="true" expr="print((('Message from the ' || workflow_name()) || '_CATCH Block Script:'))" >
<FUNCTION_CALL name="print"  type="DI" >
<CONCAT>
<CONCAT>
<CONSTANT value="Message from the " datatype="VARCHAR" size="17" />
<FUNCTION_CALL name="workflow_name"  type="DI" />
</CONCAT>
<CONSTANT value="_CATCH Block Script:" datatype="VARCHAR" size="20" />
</CONCAT>
</FUNCTION_CALL>
</DIExpression>
</DIFunctionCallStep>
<DIFunctionCallStep typeId="23" >
<DIExpression isString="true" expr="print((('The Workflow ' || workflow_name()) || ' has failed to run.'))" >
<FUNCTION_CALL name="print"  type="DI" >
<CONCAT>
<CONCAT>
<CONSTANT value="The Workflow " datatype="VARCHAR" size="13" />
<FUNCTION_CALL name="workflow_name"  type="DI" />
</CONCAT>
<CONSTANT value=" has failed to run." datatype="VARCHAR" size="19" />
</CONCAT>
</FUNCTION_CALL>
</DIExpression>
</DIFunctionCallStep>
<DIFunctionCallStep typeId="23" >
<DIExpression isString="true" expr="print(' ')" >
<FUNCTION_CALL name="print"  type="DI" >
<CONSTANT value=" " datatype="VARCHAR" size="1" />
</FUNCTION_CALL>
</DIExpression>
</DIFunctionCallStep>
<DIFunctionCallStep typeId="23" >
<DIExpression isString="true" expr="print(' ')" >
<FUNCTION_CALL name="print"  type="DI" >
<CONSTANT value=" " datatype="VARCHAR" size="1" />
</FUNCTION_CALL>
</DIExpression>
</DIFunctionCallStep>
</DIScript>
</DISteps>
</DICatch>
</DITryStep>
</DISteps>
<DIAttributes>
<DIAttribute name="run_once" value="no"/>
<DIAttribute name="unit_of_recovery" value="no"/>
</DIAttributes>
</DIWorkflow>
<DIDataflow name="MEASURETYPE_DIM_NEW_DF" typeId="1" >
<DIProperties>
<DIAttribute name="Description" value="The dataflow is responsible for sourcing the records in the XFRN table and adding the new record into the DIM table"/>
</DIProperties>
<DITransforms>
<DIDatabaseTableSource typeId="22" datastoreName="DWSTAGING_DS" ownerName="DWSTAGING_ALIAS" tableName="MEASURETYPE_DIM_XFRN_V" >
<DIOutputView name="MEASURETYPE_DIM_XFRN_V"  />
<DIAttributes>
<DIAttribute name="array_fetch_size" value="1000"/>
<DIAttribute name="cache" value="yes"/>
<DIAttribute name="connection_port" value="no"/>
<DIAttribute name="enable_partitioning" value="no"/>
<DIAttribute name="name" value="DWSTAGING_DS"/>
<DIAttribute name="package_size" value="0"/>
<DIAttribute name="reader_is_DB2CDC_table" value="no"/>
<DIAttribute name="reader_overflow_file" value="overflow_file"/>
<DIAttribute name="reader_template_table" value="no"/>
<DIAttribute name="reader_use_overflow_file" value="no"/>
<DIAttribute name="reader_use_trex_transaction" value="no"/>
<DIAttribute name="table_weight" value="0"/>
</DIAttributes>
</DIDatabaseTableSource>

<DIDatabaseTableTarget typeID="11" bulkLoader="false" datastoreName="DW_DS" ownerName="DW_ALIAS" tableName="MEASURETYPE_DIM" >
<DIInputView name="MEASURETYPE_DIM_XFRN_V"  />
<DIAttributes>
<DIAttribute name="LDRLiveLoad" value="no"/>
<DIAttribute name="Table_Type" value="TABLE"/>
<DIAttribute name="connection_port" value="no"/>
<DIAttribute name="ldr_configuration_enabled" value="yes"/>
<DIAttribute name="ldr_configurations" hasNestedXMLTree ="true">

<LDRConfigurations>
<LDRConfiguration database_type="Microsoft_SQL_Server" database_version="Microsoft SQL Server 2005">
<auto_correct_using_merge>Yes</auto_correct_using_merge>
<bulk_ldr_all_rows></bulk_ldr_all_rows>
<bulk_ldr_max_errors></bulk_ldr_max_errors>
<bulk_ldr_rows_per_commit></bulk_ldr_rows_per_commit>
<enable_partitioning>no</enable_partitioning>
<ignore_column_case>yes</ignore_column_case>
<ignore_columns_null>no</ignore_columns_null>
<ignore_columns_value></ignore_columns_value>
<loader_auto_correct>yes</loader_auto_correct>
<loader_bulk_load>0</loader_bulk_load>
<loader_compare_column>compare_by_name</loader_compare_column>
<loader_delete_map></loader_delete_map>
<loader_drop_and_create_table>no</loader_drop_and_create_table>
<loader_insert_map></loader_insert_map>
<loader_load_choice>append</loader_load_choice>
<loader_num_parallel_loaders>1</loader_num_parallel_loaders>
<loader_overflow_file>overflow_file</loader_overflow_file>
<loader_post_load1></loader_post_load1>
<loader_pre_load1></loader_pre_load1>
<loader_quote_names>0</loader_quote_names>
<loader_transactional>no</loader_transactional>
<loader_transactional_order>0</loader_transactional_order>
<loader_update_key_columns>no</loader_update_key_columns>
<loader_update_map></loader_update_map>
<loader_use_user_defined_keys>no</loader_use_user_defined_keys>
<loader_xact_size>1000</loader_xact_size>
<mssql_bulk_ldr_mode>append</mssql_bulk_ldr_mode>
<mssql_bulk_ldr_packet_size>4</mssql_bulk_ldr_packet_size>
<overflow_file_format>Write data</overflow_file_format>
<overriding_substitution_parameter_for_tablename></overriding_substitution_parameter_for_tablename>
<use_overflow_file>no</use_overflow_file>
<use_unicode_varchar>no</use_unicode_varchar>
<sql_text></sql_text>
</LDRConfiguration>
</LDRConfigurations>
</DIAttribute>
<DIAttribute name="loader_template_table" value="no"/>
<DIAttribute name="name" value="DW_DS"/>
<DIAttribute name="use_unicode_varchar" value="no"/>
</DIAttributes>
</DIDatabaseTableTarget>

</DITransforms>
<DIAttributes>
<DIAttribute name="Cache_type" value="pageable_cache"/>
<DIAttribute name="Parallelism_degree" value="0"/>
<DIAttribute name="allows_both_input_and_output" value="yes"/>
<DIAttribute name="run_once" value="no"/>
<DIAttribute name="use_dataflow_links" value="no"/>
<DIAttribute name="use_datastore_links" value="yes"/>
<DIAttribute name="validation_xform_exists" value="no"/>
<DIAttribute name="validation_xform_stats" value="no"/>
</DIAttributes>
</DIDataflow>
<DIWorkflow name="MEASURETYPE_DIM_UPD_WF" typeId="2" >
<DIUIOptions>
<DIAnnotation name="ANNOTATION_0"><DIAttribute name="ObjectDesc" value="This workflow loads records from the XFRN table and adds the new record into the dimension table. The MD BATCH ID and MD PROCESS ID fields are pulled directly from the source."/>
</DIAnnotation></DIUIOptions>
<DIProperties>
<DIAttribute name="Description" value="The workflow {Target}_DIM_NEW_WF is the workflow responsible for sourcing the records in the XFRN table and adding the new records into the DIM table. The workflow will be composed of the following objects:&#xA;•&#x9;{Target}_DIM_NEW_TRY – The beginning of the TRY/CATCH block in Data Integrator&#xA;•&#x9;{Target}_DIM_NEW_START_SC – The script that calls the custom function that initiates the metadata tracking for the workflow.&#xA;•&#x9;{Target}_DIM_NEW_DF – The dataflow that pulls all new records from the XFRN table and adds them to the target dimension.&#xA;•&#x9;{Target}_DIM_NEW_END_SC – The script that calls the custom function that closes the metadata for the workflow.&#xA;•&#x9;{Target}_DIM_NEW_CATCH – The end of the TRY/CATCH block.  It contains the script that calls the custom function which writes metadata if there is a failure."/>
</DIProperties>
<DIVariables>
<DIElement paramType="LOCAL" name="$L_IDENTIFIER" datatype="VARCHAR" size="100" >
</DIElement>
<DIElement paramType="LOCAL" name="$L_SOURCE_ENTITY" datatype="VARCHAR" size="100" >
</DIElement>
<DIElement paramType="LOCAL" name="$L_DB_OWNER" datatype="VARCHAR" size="100" >
</DIElement>
</DIVariables>
<DISteps>
<DITryStep typeId="13" >
<DIUIOptions>
<DIAttribute name="ObjectDesc" value="the Try of the Try / Catch Block"/>
<DIAttribute name="ui_display_name" value="MEASURETYPE_DIM_UPD_TRY"/>
</DIUIOptions>
<DISteps>
<DIScript>
<DIUIOptions>
<DIAttribute name="ObjectDesc" value="The workflow script object which contains the script to call the custom start workflow function.  This script opens the metadata records that are part of this process"/>
<DIAttribute name="ui_display_name" value="MEASURETYPE_DIM_UPD_START_SC"/>
<DIAttribute name="ui_script_text" value="#-- ABC ---&#xA;$L_IDENTIFIER = workflow_name();&#xA;ABC_STARTWF_FN($L_IDENTIFIER, $G_PROCESS_ID);&#xA;&#xA;#---&#xA;if( $G_DEBUG_MODE = 1)&#xA;Begin&#xA;print(' ');&#xA;print(' ');&#xA;print('The Workfolw ' || workflow_name() || ' is running in Debug mode.');&#xA;print(' ');&#xA;print(' ');&#xA;END&#xA;&#xA;"/>
</DIUIOptions>
<DIAssignmentStep typeId="12" variable="$L_IDENTIFIER" >
<DIExpression isString="true" expr="workflow_name()" >
<FUNCTION_CALL name="workflow_name"  type="DI" />
</DIExpression>
</DIAssignmentStep>
<DIFunctionCallStep typeId="23" >
<DIExpression isString="true" expr="abc_startwf_fn($L_IDENTIFIER, $G_PROCESS_ID)" >
<FUNCTION_CALL name="abc_startwf_fn"  type="DI" >
<VARIABLE_REFERENCE name="$L_IDENTIFIER" />
<VARIABLE_REFERENCE name="$G_PROCESS_ID" />
</FUNCTION_CALL>
</DIExpression>
</DIFunctionCallStep>
<DIIfStep typeId="2" >
<DIExpression isString="true" expr="($G_DEBUG_MODE = 1)" >
<LOGICAL_OP op="EQ">
<VARIABLE_REFERENCE name="$G_DEBUG_MODE" />
<CONSTANT value="1" datatype="INT" />
</LOGICAL_OP>
</DIExpression>
<DIIf>
<DIFunctionCallStep typeId="23" >
<DIExpression isString="true" expr="print(' ')" >
<FUNCTION_CALL name="print"  type="DI" >
<CONSTANT value=" " datatype="VARCHAR" size="1" />
</FUNCTION_CALL>
</DIExpression>
</DIFunctionCallStep>
<DIFunctionCallStep typeId="23" >
<DIExpression isString="true" expr="print(' ')" >
<FUNCTION_CALL name="print"  type="DI" >
<CONSTANT value=" " datatype="VARCHAR" size="1" />
</FUNCTION_CALL>
</DIExpression>
</DIFunctionCallStep>
<DIFunctionCallStep typeId="23" >
<DIExpression isString="true" expr="print((('The Workfolw ' || workflow_name()) || ' is running in Debug mode.'))" >
<FUNCTION_CALL name="print"  type="DI" >
<CONCAT>
<CONCAT>
<CONSTANT value="The Workfolw " datatype="VARCHAR" size="13" />
<FUNCTION_CALL name="workflow_name"  type="DI" />
</CONCAT>
<CONSTANT value=" is running in Debug mode." datatype="VARCHAR" size="26" />
</CONCAT>
</FUNCTION_CALL>
</DIExpression>
</DIFunctionCallStep>
<DIFunctionCallStep typeId="23" >
<DIExpression isString="true" expr="print(' ')" >
<FUNCTION_CALL name="print"  type="DI" >
<CONSTANT value=" " datatype="VARCHAR" size="1" />
</FUNCTION_CALL>
</DIExpression>
</DIFunctionCallStep>
<DIFunctionCallStep typeId="23" >
<DIExpression isString="true" expr="print(' ')" >
<FUNCTION_CALL name="print"  type="DI" >
<CONSTANT value=" " datatype="VARCHAR" size="1" />
</FUNCTION_CALL>
</DIExpression>
</DIFunctionCallStep>
</DIIf>
</DIIfStep>
</DIScript>
<DICallStep typeId="1"  calledObjectType="Dataflow" name="MEASURETYPE_DIM_UPD_DF" >
</DICallStep>
<DIScript>
<DIUIOptions>
<DIAttribute name="ObjectDesc" value="The workflow script object that calls the custom end workflow function.  This script closes the metadata records that are part of this process."/>
<DIAttribute name="ui_display_name" value="MEASURETYPE_DIM_UPD_END_SC"/>
<DIAttribute name="ui_script_text" value="#--- ABC ---&#xA;ABC_ENDWF_FN($L_IDENTIFIER, $G_PROCESS_ID);&#xA;&#xA;#---&#xA;if( $G_DEBUG_MODE = 1)&#xA;Begin&#xA;print(' ');&#xA;print(' ');&#xA;print('The Workfolw ' || workflow_name() || ' is completed running in Debug mode.');&#xA;print(' ');&#xA;print(' ');&#xA;END"/>
</DIUIOptions>
<DIFunctionCallStep typeId="23" >
<DIExpression isString="true" expr="abc_endwf_fn($L_IDENTIFIER, $G_PROCESS_ID)" >
<FUNCTION_CALL name="abc_endwf_fn"  type="DI" >
<VARIABLE_REFERENCE name="$L_IDENTIFIER" />
<VARIABLE_REFERENCE name="$G_PROCESS_ID" />
</FUNCTION_CALL>
</DIExpression>
</DIFunctionCallStep>
<DIIfStep typeId="2" >
<DIExpression isString="true" expr="($G_DEBUG_MODE = 1)" >
<LOGICAL_OP op="EQ">
<VARIABLE_REFERENCE name="$G_DEBUG_MODE" />
<CONSTANT value="1" datatype="INT" />
</LOGICAL_OP>
</DIExpression>
<DIIf>
<DIFunctionCallStep typeId="23" >
<DIExpression isString="true" expr="print(' ')" >
<FUNCTION_CALL name="print"  type="DI" >
<CONSTANT value=" " datatype="VARCHAR" size="1" />
</FUNCTION_CALL>
</DIExpression>
</DIFunctionCallStep>
<DIFunctionCallStep typeId="23" >
<DIExpression isString="true" expr="print(' ')" >
<FUNCTION_CALL name="print"  type="DI" >
<CONSTANT value=" " datatype="VARCHAR" size="1" />
</FUNCTION_CALL>
</DIExpression>
</DIFunctionCallStep>
<DIFunctionCallStep typeId="23" >
<DIExpression isString="true" expr="print((('The Workfolw ' || workflow_name()) || ' is completed running in Debug mode.'))" >
<FUNCTION_CALL name="print"  type="DI" >
<CONCAT>
<CONCAT>
<CONSTANT value="The Workfolw " datatype="VARCHAR" size="13" />
<FUNCTION_CALL name="workflow_name"  type="DI" />
</CONCAT>
<CONSTANT value=" is completed running in Debug mode." datatype="VARCHAR" size="36" />
</CONCAT>
</FUNCTION_CALL>
</DIExpression>
</DIFunctionCallStep>
<DIFunctionCallStep typeId="23" >
<DIExpression isString="true" expr="print(' ')" >
<FUNCTION_CALL name="print"  type="DI" >
<CONSTANT value=" " datatype="VARCHAR" size="1" />
</FUNCTION_CALL>
</DIExpression>
</DIFunctionCallStep>
<DIFunctionCallStep typeId="23" >
<DIExpression isString="true" expr="print(' ')" >
<FUNCTION_CALL name="print"  type="DI" >
<CONSTANT value=" " datatype="VARCHAR" size="1" />
</FUNCTION_CALL>
</DIExpression>
</DIFunctionCallStep>
</DIIf>
</DIIfStep>
</DIScript>
</DISteps>
<DICatch typeId="20" errorCode="210101" >
<DIUIOptions>
<DIAttribute name="ObjectDesc" value="The workflow catch object is the end of the TRY/CATCH block in BO DS.  This catch block will contain the script object that calls a custom fail workflow function used to write the metadata for failed jobs."/>
<DIAttribute name="ui_display_name" value="MEASURETYPE_DIM_UPD_CATCH"/>
</DIUIOptions>
<DISteps>
<DIScript>
<DIUIOptions>
<DIAttribute name="ui_display_name" value="MEASURETYPE_DIM_UPD_FAIL_SC"/>
<DIAttribute name="ui_script_text" value="#ABC - CALL FUNCTION TO TRACK END OF WORKFLOW&#xA;ABC_FAILWF_FN(workflow_name(), $G_PROCESS_ID, 'Error: \[' || error_number() || '\] ' || error_message());&#xA;&#xA;#--&#xA;print(' ');&#xA;print(' ');&#xA;print('Message from the ' || workflow_name() || '_CATCH Block Script:');&#xA;print('The Workflow ' || workflow_name() || ' has failed to run.');&#xA;print(' ');&#xA;print(' ');"/>
</DIUIOptions>
<DIFunctionCallStep typeId="23" >
<DIExpression isString="true" expr="abc_failwf_fn(workflow_name(), $G_PROCESS_ID, ((('Error: \\[' || error_number()) || '\\] ') || error_message()))" >
<FUNCTION_CALL name="abc_failwf_fn"  type="DI" >
<FUNCTION_CALL name="workflow_name"  type="DI" />
<VARIABLE_REFERENCE name="$G_PROCESS_ID" />
<CONCAT>
<CONCAT>
<CONCAT>
<CONSTANT value="Error: \[" datatype="VARCHAR" size="9" />
<FUNCTION_CALL name="error_number"  type="DI" />
</CONCAT>
<CONSTANT value="\] " datatype="VARCHAR" size="3" />
</CONCAT>
<FUNCTION_CALL name="error_message"  type="DI" />
</CONCAT>
</FUNCTION_CALL>
</DIExpression>
</DIFunctionCallStep>
<DIFunctionCallStep typeId="23" >
<DIExpression isString="true" expr="print(' ')" >
<FUNCTION_CALL name="print"  type="DI" >
<CONSTANT value=" " datatype="VARCHAR" size="1" />
</FUNCTION_CALL>
</DIExpression>
</DIFunctionCallStep>
<DIFunctionCallStep typeId="23" >
<DIExpression isString="true" expr="print(' ')" >
<FUNCTION_CALL name="print"  type="DI" >
<CONSTANT value=" " datatype="VARCHAR" size="1" />
</FUNCTION_CALL>
</DIExpression>
</DIFunctionCallStep>
<DIFunctionCallStep typeId="23" >
<DIExpression isString="true" expr="print((('Message from the ' || workflow_name()) || '_CATCH Block Script:'))" >
<FUNCTION_CALL name="print"  type="DI" >
<CONCAT>
<CONCAT>
<CONSTANT value="Message from the " datatype="VARCHAR" size="17" />
<FUNCTION_CALL name="workflow_name"  type="DI" />
</CONCAT>
<CONSTANT value="_CATCH Block Script:" datatype="VARCHAR" size="20" />
</CONCAT>
</FUNCTION_CALL>
</DIExpression>
</DIFunctionCallStep>
<DIFunctionCallStep typeId="23" >
<DIExpression isString="true" expr="print((('The Workflow ' || workflow_name()) || ' has failed to run.'))" >
<FUNCTION_CALL name="print"  type="DI" >
<CONCAT>
<CONCAT>
<CONSTANT value="The Workflow " datatype="VARCHAR" size="13" />
<FUNCTION_CALL name="workflow_name"  type="DI" />
</CONCAT>
<CONSTANT value=" has failed to run." datatype="VARCHAR" size="19" />
</CONCAT>
</FUNCTION_CALL>
</DIExpression>
</DIFunctionCallStep>
<DIFunctionCallStep typeId="23" >
<DIExpression isString="true" expr="print(' ')" >
<FUNCTION_CALL name="print"  type="DI" >
<CONSTANT value=" " datatype="VARCHAR" size="1" />
</FUNCTION_CALL>
</DIExpression>
</DIFunctionCallStep>
<DIFunctionCallStep typeId="23" >
<DIExpression isString="true" expr="print(' ')" >
<FUNCTION_CALL name="print"  type="DI" >
<CONSTANT value=" " datatype="VARCHAR" size="1" />
</FUNCTION_CALL>
</DIExpression>
</DIFunctionCallStep>
</DIScript>
</DISteps>
</DICatch>
</DITryStep>
</DISteps>
<DIAttributes>
<DIAttribute name="run_once" value="no"/>
<DIAttribute name="unit_of_recovery" value="no"/>
</DIAttributes>
</DIWorkflow>
<DIDataflow name="MEASURETYPE_DIM_UPD_DF" typeId="1" >
<DIProperties>
<DIAttribute name="Description" value="The dataflow is responsible for sourcing the records in the XFRN table and adding the new record into the DIM table"/>
</DIProperties>
<DITransforms>
<DIDatabaseTableSource typeId="22" datastoreName="DWSTAGING_DS" ownerName="DWSTAGING_ALIAS" tableName="MEASURETYPE_DIM_XFRU_V" >
<DIOutputView name="MEASURETYPE_DIM_XFRU_V"  />
<DIAttributes>
<DIAttribute name="array_fetch_size" value="1000"/>
<DIAttribute name="cache" value="yes"/>
<DIAttribute name="connection_port" value="no"/>
<DIAttribute name="enable_partitioning" value="no"/>
<DIAttribute name="name" value="DWSTAGING_DS"/>
<DIAttribute name="package_size" value="0"/>
<DIAttribute name="reader_is_DB2CDC_table" value="no"/>
<DIAttribute name="reader_overflow_file" value="overflow_file"/>
<DIAttribute name="reader_template_table" value="no"/>
<DIAttribute name="reader_use_overflow_file" value="no"/>
<DIAttribute name="reader_use_trex_transaction" value="no"/>
<DIAttribute name="table_weight" value="0"/>
</DIAttributes>
</DIDatabaseTableSource>

<DIDatabaseTableTarget typeID="11" bulkLoader="false" datastoreName="DW_DS" ownerName="DW_ALIAS" tableName="MEASURETYPE_DIM" >
<DIInputView name="MEASURETYPE_DIM_XFRU_V"  />
<DIAttributes>
<DIAttribute name="LDRLiveLoad" value="no"/>
<DIAttribute name="Table_Type" value="TABLE"/>
<DIAttribute name="connection_port" value="no"/>
<DIAttribute name="ldr_configuration_enabled" value="yes"/>
<DIAttribute name="ldr_configurations" hasNestedXMLTree ="true">

<LDRConfigurations>
<LDRConfiguration database_type="Microsoft_SQL_Server" database_version="Microsoft SQL Server 2005">
<auto_correct_using_merge>Yes</auto_correct_using_merge>
<bulk_ldr_all_rows></bulk_ldr_all_rows>
<bulk_ldr_max_errors></bulk_ldr_max_errors>
<bulk_ldr_rows_per_commit>1000</bulk_ldr_rows_per_commit>
<enable_partitioning>no</enable_partitioning>
<ignore_column_case>yes</ignore_column_case>
<ignore_columns_null>yes</ignore_columns_null>
<ignore_columns_value></ignore_columns_value>
<loader_auto_correct>yes</loader_auto_correct>
<loader_bulk_load></loader_bulk_load>
<loader_compare_column>compare_by_name</loader_compare_column>
<loader_delete_map></loader_delete_map>
<loader_drop_and_create_table>no</loader_drop_and_create_table>
<loader_insert_map></loader_insert_map>
<loader_load_choice>append</loader_load_choice>
<loader_num_parallel_loaders>1</loader_num_parallel_loaders>
<loader_overflow_file>overflow_file</loader_overflow_file>
<loader_post_load1></loader_post_load1>
<loader_pre_load1></loader_pre_load1>
<loader_quote_names>0</loader_quote_names>
<loader_transactional>no</loader_transactional>
<loader_transactional_order>0</loader_transactional_order>
<loader_update_key_columns>yes</loader_update_key_columns>
<loader_update_map></loader_update_map>
<loader_use_user_defined_keys>no</loader_use_user_defined_keys>
<loader_xact_size>1000</loader_xact_size>
<mssql_bulk_ldr_mode>append</mssql_bulk_ldr_mode>
<mssql_bulk_ldr_packet_size>0</mssql_bulk_ldr_packet_size>
<overflow_file_format>Write data</overflow_file_format>
<overriding_substitution_parameter_for_tablename></overriding_substitution_parameter_for_tablename>
<use_overflow_file>no</use_overflow_file>
<use_unicode_varchar>no</use_unicode_varchar>
<sql_text></sql_text>
</LDRConfiguration>
</LDRConfigurations>
</DIAttribute>
<DIAttribute name="loader_template_table" value="no"/>
<DIAttribute name="name" value="DW_DS"/>
<DIAttribute name="use_unicode_varchar" value="no"/>
</DIAttributes>
</DIDatabaseTableTarget>

</DITransforms>
<DIAttributes>
<DIAttribute name="Cache_type" value="pageable_cache"/>
<DIAttribute name="Parallelism_degree" value="0"/>
<DIAttribute name="allows_both_input_and_output" value="yes"/>
<DIAttribute name="run_once" value="no"/>
<DIAttribute name="use_dataflow_links" value="no"/>
<DIAttribute name="use_datastore_links" value="yes"/>
<DIAttribute name="validation_xform_exists" value="no"/>
<DIAttribute name="validation_xform_stats" value="no"/>
</DIAttributes>
</DIDataflow>
<DIWorkflow name="EXTERN_PROGRAM_DIM_WF" typeId="2" >
<DIVariables>
<DIElement paramType="LOCAL" name="$L_IDENTIFIER" datatype="VARCHAR" size="100" >
</DIElement>
</DIVariables>
<DISteps>
</DISteps>
<DIAttributes>
<DIAttribute name="run_once" value="no"/>
<DIAttribute name="unit_of_recovery" value="no"/>
</DIAttributes>
</DIWorkflow>
<DIWorkflow name="STATUS_DIM_WF" typeId="2" >
<DIUIOptions>
<DIAnnotation name="ANNOTATION_0"><DIAttribute name="ObjectDesc" value="This workflow was created in order to house the dimension workflows that push the load ready Dimension XFR tables into the target dimension tables. These workflows are processed in serial; the deletions are first updated in the target with history information, then the updates for SCD1 and SCD2, then the new records are added to the target."/>
</DIAnnotation></DIUIOptions>
<DIProperties>
<DIAttribute name="Description" value="This workflow was created in order to house the dimension workflows that push the load ready XFR tables into the target dimension tables. These workflows are processed in serial; the deletions are first updated in the target with history information, then the updates for SCD1 and SCD2, then the new records are added to the target."/>
</DIProperties>
<DISteps>
<DICallStep typeId="0"  calledObjectType="Workflow" name="STATUS_DIM_NEW_WF" >
</DICallStep>
<DICallStep typeId="0"  calledObjectType="Workflow" name="STATUS_DIM_UPD_WF" >
</DICallStep>
</DISteps>
<DIAttributes>
<DIAttribute name="run_once" value="no"/>
<DIAttribute name="unit_of_recovery" value="no"/>
</DIAttributes>
</DIWorkflow>
<DIWorkflow name="STATUS_DIM_NEW_WF" typeId="2" >
<DIUIOptions>
<DIAnnotation name="ANNOTATION_0"><DIAttribute name="ObjectDesc" value="This workflow loads records from the XFRN table and adds the new record into the dimension table. The MD BATCH ID and MD PROCESS ID fields are pulled directly from the source."/>
</DIAnnotation></DIUIOptions>
<DIProperties>
<DIAttribute name="Description" value="The workflow {Target}_DIM_NEW_WF is the workflow responsible for sourcing the records in the XFRN table and adding the new records into the DIM table. The workflow will be composed of the following objects:&#xA;•&#x9;{Target}_DIM_NEW_TRY – The beginning of the TRY/CATCH block in Data Integrator&#xA;•&#x9;{Target}_DIM_NEW_START_SC – The script that calls the custom function that initiates the metadata tracking for the workflow.&#xA;•&#x9;{Target}_DIM_NEW_DF – The dataflow that pulls all new records from the XFRN table and adds them to the target dimension.&#xA;•&#x9;{Target}_DIM_NEW_END_SC – The script that calls the custom function that closes the metadata for the workflow.&#xA;•&#x9;{Target}_DIM_NEW_CATCH – The end of the TRY/CATCH block.  It contains the script that calls the custom function which writes metadata if there is a failure."/>
</DIProperties>
<DIVariables>
<DIElement paramType="LOCAL" name="$L_IDENTIFIER" datatype="VARCHAR" size="100" >
</DIElement>
<DIElement paramType="LOCAL" name="$L_SOURCE_ENTITY" datatype="VARCHAR" size="100" >
</DIElement>
<DIElement paramType="LOCAL" name="$L_DB_OWNER" datatype="VARCHAR" size="100" >
</DIElement>
</DIVariables>
<DISteps>
<DITryStep typeId="13" >
<DIUIOptions>
<DIAttribute name="ObjectDesc" value="the Try of the Try / Catch Block"/>
<DIAttribute name="ui_display_name" value="STATUS_DIM_NEW_TRY"/>
</DIUIOptions>
<DISteps>
<DIScript>
<DIUIOptions>
<DIAttribute name="ObjectDesc" value="The workflow script object which contains the script to call the custom start workflow function.  This script opens the metadata records that are part of this process"/>
<DIAttribute name="ui_display_name" value="STATUS_DIM_NEW_START_SC"/>
<DIAttribute name="ui_script_text" value="#-- ABC ---&#xA;$L_IDENTIFIER = workflow_name();&#xA;ABC_STARTWF_FN($L_IDENTIFIER, $G_PROCESS_ID);&#xA;&#xA;#---&#xA;if( $G_DEBUG_MODE = 1)&#xA;Begin&#xA;print(' ');&#xA;print(' ');&#xA;print('The Workfolw ' || workflow_name() || ' is running in Debug mode.');&#xA;print(' ');&#xA;print(' ');&#xA;END&#xA;&#xA;"/>
</DIUIOptions>
<DIAssignmentStep typeId="12" variable="$L_IDENTIFIER" >
<DIExpression isString="true" expr="workflow_name()" >
<FUNCTION_CALL name="workflow_name"  type="DI" />
</DIExpression>
</DIAssignmentStep>
<DIFunctionCallStep typeId="23" >
<DIExpression isString="true" expr="abc_startwf_fn($L_IDENTIFIER, $G_PROCESS_ID)" >
<FUNCTION_CALL name="abc_startwf_fn"  type="DI" >
<VARIABLE_REFERENCE name="$L_IDENTIFIER" />
<VARIABLE_REFERENCE name="$G_PROCESS_ID" />
</FUNCTION_CALL>
</DIExpression>
</DIFunctionCallStep>
<DIIfStep typeId="2" >
<DIExpression isString="true" expr="($G_DEBUG_MODE = 1)" >
<LOGICAL_OP op="EQ">
<VARIABLE_REFERENCE name="$G_DEBUG_MODE" />
<CONSTANT value="1" datatype="INT" />
</LOGICAL_OP>
</DIExpression>
<DIIf>
<DIFunctionCallStep typeId="23" >
<DIExpression isString="true" expr="print(' ')" >
<FUNCTION_CALL name="print"  type="DI" >
<CONSTANT value=" " datatype="VARCHAR" size="1" />
</FUNCTION_CALL>
</DIExpression>
</DIFunctionCallStep>
<DIFunctionCallStep typeId="23" >
<DIExpression isString="true" expr="print(' ')" >
<FUNCTION_CALL name="print"  type="DI" >
<CONSTANT value=" " datatype="VARCHAR" size="1" />
</FUNCTION_CALL>
</DIExpression>
</DIFunctionCallStep>
<DIFunctionCallStep typeId="23" >
<DIExpression isString="true" expr="print((('The Workfolw ' || workflow_name()) || ' is running in Debug mode.'))" >
<FUNCTION_CALL name="print"  type="DI" >
<CONCAT>
<CONCAT>
<CONSTANT value="The Workfolw " datatype="VARCHAR" size="13" />
<FUNCTION_CALL name="workflow_name"  type="DI" />
</CONCAT>
<CONSTANT value=" is running in Debug mode." datatype="VARCHAR" size="26" />
</CONCAT>
</FUNCTION_CALL>
</DIExpression>
</DIFunctionCallStep>
<DIFunctionCallStep typeId="23" >
<DIExpression isString="true" expr="print(' ')" >
<FUNCTION_CALL name="print"  type="DI" >
<CONSTANT value=" " datatype="VARCHAR" size="1" />
</FUNCTION_CALL>
</DIExpression>
</DIFunctionCallStep>
<DIFunctionCallStep typeId="23" >
<DIExpression isString="true" expr="print(' ')" >
<FUNCTION_CALL name="print"  type="DI" >
<CONSTANT value=" " datatype="VARCHAR" size="1" />
</FUNCTION_CALL>
</DIExpression>
</DIFunctionCallStep>
</DIIf>
</DIIfStep>
</DIScript>
<DICallStep typeId="1"  calledObjectType="Dataflow" name="STATUS_DIM_NEW_DF" >
</DICallStep>
<DIScript>
<DIUIOptions>
<DIAttribute name="ObjectDesc" value="The workflow script object that calls the custom end workflow function.  This script closes the metadata records that are part of this process."/>
<DIAttribute name="ui_display_name" value="STATUS_DIM_NEW_END_SC"/>
<DIAttribute name="ui_script_text" value="#--- ABC ---&#xA;ABC_ENDWF_FN($L_IDENTIFIER, $G_PROCESS_ID);&#xA;&#xA;#---&#xA;if( $G_DEBUG_MODE = 1)&#xA;Begin&#xA;print(' ');&#xA;print(' ');&#xA;print('The Workfolw ' || workflow_name() || ' is completed running in Debug mode.');&#xA;print(' ');&#xA;print(' ');&#xA;END"/>
</DIUIOptions>
<DIFunctionCallStep typeId="23" >
<DIExpression isString="true" expr="abc_endwf_fn($L_IDENTIFIER, $G_PROCESS_ID)" >
<FUNCTION_CALL name="abc_endwf_fn"  type="DI" >
<VARIABLE_REFERENCE name="$L_IDENTIFIER" />
<VARIABLE_REFERENCE name="$G_PROCESS_ID" />
</FUNCTION_CALL>
</DIExpression>
</DIFunctionCallStep>
<DIIfStep typeId="2" >
<DIExpression isString="true" expr="($G_DEBUG_MODE = 1)" >
<LOGICAL_OP op="EQ">
<VARIABLE_REFERENCE name="$G_DEBUG_MODE" />
<CONSTANT value="1" datatype="INT" />
</LOGICAL_OP>
</DIExpression>
<DIIf>
<DIFunctionCallStep typeId="23" >
<DIExpression isString="true" expr="print(' ')" >
<FUNCTION_CALL name="print"  type="DI" >
<CONSTANT value=" " datatype="VARCHAR" size="1" />
</FUNCTION_CALL>
</DIExpression>
</DIFunctionCallStep>
<DIFunctionCallStep typeId="23" >
<DIExpression isString="true" expr="print(' ')" >
<FUNCTION_CALL name="print"  type="DI" >
<CONSTANT value=" " datatype="VARCHAR" size="1" />
</FUNCTION_CALL>
</DIExpression>
</DIFunctionCallStep>
<DIFunctionCallStep typeId="23" >
<DIExpression isString="true" expr="print((('The Workfolw ' || workflow_name()) || ' is completed running in Debug mode.'))" >
<FUNCTION_CALL name="print"  type="DI" >
<CONCAT>
<CONCAT>
<CONSTANT value="The Workfolw " datatype="VARCHAR" size="13" />
<FUNCTION_CALL name="workflow_name"  type="DI" />
</CONCAT>
<CONSTANT value=" is completed running in Debug mode." datatype="VARCHAR" size="36" />
</CONCAT>
</FUNCTION_CALL>
</DIExpression>
</DIFunctionCallStep>
<DIFunctionCallStep typeId="23" >
<DIExpression isString="true" expr="print(' ')" >
<FUNCTION_CALL name="print"  type="DI" >
<CONSTANT value=" " datatype="VARCHAR" size="1" />
</FUNCTION_CALL>
</DIExpression>
</DIFunctionCallStep>
<DIFunctionCallStep typeId="23" >
<DIExpression isString="true" expr="print(' ')" >
<FUNCTION_CALL name="print"  type="DI" >
<CONSTANT value=" " datatype="VARCHAR" size="1" />
</FUNCTION_CALL>
</DIExpression>
</DIFunctionCallStep>
</DIIf>
</DIIfStep>
</DIScript>
</DISteps>
<DICatch typeId="20" errorCode="210101" >
<DIUIOptions>
<DIAttribute name="ObjectDesc" value="The workflow catch object is the end of the TRY/CATCH block in BO DS.  This catch block will contain the script object that calls a custom fail workflow function used to write the metadata for failed jobs."/>
<DIAttribute name="ui_display_name" value="STATUS_DIM_NEW_CATCH"/>
</DIUIOptions>
<DISteps>
<DIScript>
<DIUIOptions>
<DIAttribute name="ui_display_name" value="STATUS_DIM_FAIL_SC"/>
<DIAttribute name="ui_script_text" value="#ABC - CALL FUNCTION TO TRACK END OF WORKFLOW&#xA;ABC_FAILWF_FN(workflow_name(), $G_PROCESS_ID, 'Error: \[' || error_number() || '\] ' || error_message());&#xA;&#xA;#--&#xA;print(' ');&#xA;print(' ');&#xA;print('Message from the ' || workflow_name() || '_CATCH Block Script:');&#xA;print('The Workflow ' || workflow_name() || ' has failed to run.');&#xA;print(' ');&#xA;print(' ');"/>
</DIUIOptions>
<DIFunctionCallStep typeId="23" >
<DIExpression isString="true" expr="abc_failwf_fn(workflow_name(), $G_PROCESS_ID, ((('Error: \\[' || error_number()) || '\\] ') || error_message()))" >
<FUNCTION_CALL name="abc_failwf_fn"  type="DI" >
<FUNCTION_CALL name="workflow_name"  type="DI" />
<VARIABLE_REFERENCE name="$G_PROCESS_ID" />
<CONCAT>
<CONCAT>
<CONCAT>
<CONSTANT value="Error: \[" datatype="VARCHAR" size="9" />
<FUNCTION_CALL name="error_number"  type="DI" />
</CONCAT>
<CONSTANT value="\] " datatype="VARCHAR" size="3" />
</CONCAT>
<FUNCTION_CALL name="error_message"  type="DI" />
</CONCAT>
</FUNCTION_CALL>
</DIExpression>
</DIFunctionCallStep>
<DIFunctionCallStep typeId="23" >
<DIExpression isString="true" expr="print(' ')" >
<FUNCTION_CALL name="print"  type="DI" >
<CONSTANT value=" " datatype="VARCHAR" size="1" />
</FUNCTION_CALL>
</DIExpression>
</DIFunctionCallStep>
<DIFunctionCallStep typeId="23" >
<DIExpression isString="true" expr="print(' ')" >
<FUNCTION_CALL name="print"  type="DI" >
<CONSTANT value=" " datatype="VARCHAR" size="1" />
</FUNCTION_CALL>
</DIExpression>
</DIFunctionCallStep>
<DIFunctionCallStep typeId="23" >
<DIExpression isString="true" expr="print((('Message from the ' || workflow_name()) || '_CATCH Block Script:'))" >
<FUNCTION_CALL name="print"  type="DI" >
<CONCAT>
<CONCAT>
<CONSTANT value="Message from the " datatype="VARCHAR" size="17" />
<FUNCTION_CALL name="workflow_name"  type="DI" />
</CONCAT>
<CONSTANT value="_CATCH Block Script:" datatype="VARCHAR" size="20" />
</CONCAT>
</FUNCTION_CALL>
</DIExpression>
</DIFunctionCallStep>
<DIFunctionCallStep typeId="23" >
<DIExpression isString="true" expr="print((('The Workflow ' || workflow_name()) || ' has failed to run.'))" >
<FUNCTION_CALL name="print"  type="DI" >
<CONCAT>
<CONCAT>
<CONSTANT value="The Workflow " datatype="VARCHAR" size="13" />
<FUNCTION_CALL name="workflow_name"  type="DI" />
</CONCAT>
<CONSTANT value=" has failed to run." datatype="VARCHAR" size="19" />
</CONCAT>
</FUNCTION_CALL>
</DIExpression>
</DIFunctionCallStep>
<DIFunctionCallStep typeId="23" >
<DIExpression isString="true" expr="print(' ')" >
<FUNCTION_CALL name="print"  type="DI" >
<CONSTANT value=" " datatype="VARCHAR" size="1" />
</FUNCTION_CALL>
</DIExpression>
</DIFunctionCallStep>
<DIFunctionCallStep typeId="23" >
<DIExpression isString="true" expr="print(' ')" >
<FUNCTION_CALL name="print"  type="DI" >
<CONSTANT value=" " datatype="VARCHAR" size="1" />
</FUNCTION_CALL>
</DIExpression>
</DIFunctionCallStep>
</DIScript>
</DISteps>
</DICatch>
</DITryStep>
</DISteps>
<DIAttributes>
<DIAttribute name="run_once" value="no"/>
<DIAttribute name="unit_of_recovery" value="no"/>
</DIAttributes>
</DIWorkflow>
<DIDataflow name="STATUS_DIM_NEW_DF" typeId="1" >
<DIProperties>
<DIAttribute name="Description" value="The dataflow is responsible for sourcing the records in the XFRN table and adding the new record into the DIM table"/>
</DIProperties>
<DITransforms>
<DIDatabaseTableSource typeId="22" datastoreName="DWSTAGING_DS" ownerName="DWSTAGING_ALIAS" tableName="STATUS_DIM_XFRN_V" >
<DIOutputView name="STATUS_DIM_XFRN_V"  />
<DIAttributes>
<DIAttribute name="array_fetch_size" value="1000"/>
<DIAttribute name="cache" value="yes"/>
<DIAttribute name="connection_port" value="no"/>
<DIAttribute name="enable_partitioning" value="no"/>
<DIAttribute name="name" value="DWSTAGING_DS"/>
<DIAttribute name="package_size" value="0"/>
<DIAttribute name="reader_is_DB2CDC_table" value="no"/>
<DIAttribute name="reader_overflow_file" value="overflow_file"/>
<DIAttribute name="reader_template_table" value="no"/>
<DIAttribute name="reader_use_overflow_file" value="no"/>
<DIAttribute name="reader_use_trex_transaction" value="no"/>
<DIAttribute name="table_weight" value="0"/>
</DIAttributes>
</DIDatabaseTableSource>

<DIDatabaseTableTarget typeID="11" bulkLoader="false" datastoreName="DW_DS" ownerName="DW_ALIAS" tableName="STATUS_DIM" >
<DIInputView name="STATUS_DIM_XFRN_V"  />
<DIAttributes>
<DIAttribute name="LDRLiveLoad" value="no"/>
<DIAttribute name="Table_Type" value="TABLE"/>
<DIAttribute name="connection_port" value="no"/>
<DIAttribute name="ldr_configuration_enabled" value="yes"/>
<DIAttribute name="ldr_configurations" hasNestedXMLTree ="true">

<LDRConfigurations>
<LDRConfiguration database_type="Microsoft_SQL_Server" database_version="Microsoft SQL Server 2005">
<auto_correct_using_merge>yes</auto_correct_using_merge>
<bulk_ldr_all_rows></bulk_ldr_all_rows>
<bulk_ldr_max_errors></bulk_ldr_max_errors>
<bulk_ldr_rows_per_commit>1000</bulk_ldr_rows_per_commit>
<enable_partitioning>no</enable_partitioning>
<ignore_column_case>yes</ignore_column_case>
<ignore_columns_null>no</ignore_columns_null>
<ignore_columns_value></ignore_columns_value>
<loader_auto_correct>no</loader_auto_correct>
<loader_bulk_load></loader_bulk_load>
<loader_compare_column>compare_by_name</loader_compare_column>
<loader_delete_map></loader_delete_map>
<loader_drop_and_create_table>yes</loader_drop_and_create_table>
<loader_insert_map></loader_insert_map>
<loader_load_choice>append</loader_load_choice>
<loader_num_parallel_loaders>1</loader_num_parallel_loaders>
<loader_overflow_file>overflow_file</loader_overflow_file>
<loader_post_load1></loader_post_load1>
<loader_pre_load1></loader_pre_load1>
<loader_quote_names>0</loader_quote_names>
<loader_transactional>no</loader_transactional>
<loader_transactional_order>0</loader_transactional_order>
<loader_update_key_columns>no</loader_update_key_columns>
<loader_update_map></loader_update_map>
<loader_use_user_defined_keys>no</loader_use_user_defined_keys>
<loader_xact_size>1000</loader_xact_size>
<mssql_bulk_ldr_mode>append</mssql_bulk_ldr_mode>
<mssql_bulk_ldr_packet_size>0</mssql_bulk_ldr_packet_size>
<overflow_file_format>write_data</overflow_file_format>
<overriding_substitution_parameter_for_tablename></overriding_substitution_parameter_for_tablename>
<use_overflow_file>no</use_overflow_file>
<use_unicode_varchar>no</use_unicode_varchar>
<sql_text></sql_text>
</LDRConfiguration>
</LDRConfigurations>
</DIAttribute>
<DIAttribute name="loader_template_table" value="no"/>
<DIAttribute name="name" value="DW_DS"/>
<DIAttribute name="use_unicode_varchar" value="no"/>
</DIAttributes>
</DIDatabaseTableTarget>

</DITransforms>
<DIAttributes>
<DIAttribute name="Cache_type" value="pageable_cache"/>
<DIAttribute name="Parallelism_degree" value="0"/>
<DIAttribute name="allows_both_input_and_output" value="yes"/>
<DIAttribute name="run_once" value="no"/>
<DIAttribute name="use_dataflow_links" value="no"/>
<DIAttribute name="use_datastore_links" value="yes"/>
<DIAttribute name="validation_xform_exists" value="no"/>
<DIAttribute name="validation_xform_stats" value="no"/>
</DIAttributes>
</DIDataflow>
<DIWorkflow name="STATUS_DIM_UPD_WF" typeId="2" >
<DIUIOptions>
<DIAnnotation name="ANNOTATION_0"><DIAttribute name="ObjectDesc" value="This workflow loads records from the XFRN table and adds the new record into the dimension table. The MD BATCH ID and MD PROCESS ID fields are pulled directly from the source."/>
</DIAnnotation></DIUIOptions>
<DIProperties>
<DIAttribute name="Description" value="The workflow {Target}_DIM_NEW_WF is the workflow responsible for sourcing the records in the XFRN table and adding the new records into the DIM table. The workflow will be composed of the following objects:&#xA;•&#x9;{Target}_DIM_NEW_TRY – The beginning of the TRY/CATCH block in Data Integrator&#xA;•&#x9;{Target}_DIM_NEW_START_SC – The script that calls the custom function that initiates the metadata tracking for the workflow.&#xA;•&#x9;{Target}_DIM_NEW_DF – The dataflow that pulls all new records from the XFRN table and adds them to the target dimension.&#xA;•&#x9;{Target}_DIM_NEW_END_SC – The script that calls the custom function that closes the metadata for the workflow.&#xA;•&#x9;{Target}_DIM_NEW_CATCH – The end of the TRY/CATCH block.  It contains the script that calls the custom function which writes metadata if there is a failure."/>
</DIProperties>
<DIVariables>
<DIElement paramType="LOCAL" name="$L_IDENTIFIER" datatype="VARCHAR" size="100" >
</DIElement>
<DIElement paramType="LOCAL" name="$L_SOURCE_ENTITY" datatype="VARCHAR" size="100" >
</DIElement>
<DIElement paramType="LOCAL" name="$L_DB_OWNER" datatype="VARCHAR" size="100" >
</DIElement>
</DIVariables>
<DISteps>
<DITryStep typeId="13" >
<DIUIOptions>
<DIAttribute name="ObjectDesc" value="the Try of the Try / Catch Block"/>
<DIAttribute name="ui_display_name" value="STATUS_DIM_UPD_TRY"/>
</DIUIOptions>
<DISteps>
<DIScript>
<DIUIOptions>
<DIAttribute name="ObjectDesc" value="The workflow script object which contains the script to call the custom start workflow function.  This script opens the metadata records that are part of this process"/>
<DIAttribute name="ui_display_name" value="STATUS_DIM_UPD_START_SC"/>
<DIAttribute name="ui_script_text" value="#-- ABC ---&#xA;$L_IDENTIFIER = workflow_name();&#xA;ABC_STARTWF_FN($L_IDENTIFIER, $G_PROCESS_ID);&#xA;&#xA;#---&#xA;if( $G_DEBUG_MODE = 1)&#xA;Begin&#xA;print(' ');&#xA;print(' ');&#xA;print('The Workfolw ' || workflow_name() || ' is running in Debug mode.');&#xA;print(' ');&#xA;print(' ');&#xA;END&#xA;&#xA;"/>
</DIUIOptions>
<DIAssignmentStep typeId="12" variable="$L_IDENTIFIER" >
<DIExpression isString="true" expr="workflow_name()" >
<FUNCTION_CALL name="workflow_name"  type="DI" />
</DIExpression>
</DIAssignmentStep>
<DIFunctionCallStep typeId="23" >
<DIExpression isString="true" expr="abc_startwf_fn($L_IDENTIFIER, $G_PROCESS_ID)" >
<FUNCTION_CALL name="abc_startwf_fn"  type="DI" >
<VARIABLE_REFERENCE name="$L_IDENTIFIER" />
<VARIABLE_REFERENCE name="$G_PROCESS_ID" />
</FUNCTION_CALL>
</DIExpression>
</DIFunctionCallStep>
<DIIfStep typeId="2" >
<DIExpression isString="true" expr="($G_DEBUG_MODE = 1)" >
<LOGICAL_OP op="EQ">
<VARIABLE_REFERENCE name="$G_DEBUG_MODE" />
<CONSTANT value="1" datatype="INT" />
</LOGICAL_OP>
</DIExpression>
<DIIf>
<DIFunctionCallStep typeId="23" >
<DIExpression isString="true" expr="print(' ')" >
<FUNCTION_CALL name="print"  type="DI" >
<CONSTANT value=" " datatype="VARCHAR" size="1" />
</FUNCTION_CALL>
</DIExpression>
</DIFunctionCallStep>
<DIFunctionCallStep typeId="23" >
<DIExpression isString="true" expr="print(' ')" >
<FUNCTION_CALL name="print"  type="DI" >
<CONSTANT value=" " datatype="VARCHAR" size="1" />
</FUNCTION_CALL>
</DIExpression>
</DIFunctionCallStep>
<DIFunctionCallStep typeId="23" >
<DIExpression isString="true" expr="print((('The Workfolw ' || workflow_name()) || ' is running in Debug mode.'))" >
<FUNCTION_CALL name="print"  type="DI" >
<CONCAT>
<CONCAT>
<CONSTANT value="The Workfolw " datatype="VARCHAR" size="13" />
<FUNCTION_CALL name="workflow_name"  type="DI" />
</CONCAT>
<CONSTANT value=" is running in Debug mode." datatype="VARCHAR" size="26" />
</CONCAT>
</FUNCTION_CALL>
</DIExpression>
</DIFunctionCallStep>
<DIFunctionCallStep typeId="23" >
<DIExpression isString="true" expr="print(' ')" >
<FUNCTION_CALL name="print"  type="DI" >
<CONSTANT value=" " datatype="VARCHAR" size="1" />
</FUNCTION_CALL>
</DIExpression>
</DIFunctionCallStep>
<DIFunctionCallStep typeId="23" >
<DIExpression isString="true" expr="print(' ')" >
<FUNCTION_CALL name="print"  type="DI" >
<CONSTANT value=" " datatype="VARCHAR" size="1" />
</FUNCTION_CALL>
</DIExpression>
</DIFunctionCallStep>
</DIIf>
</DIIfStep>
</DIScript>
<DICallStep typeId="1"  calledObjectType="Dataflow" name="STATUS_DIM_UPD_DF" >
</DICallStep>
<DIScript>
<DIUIOptions>
<DIAttribute name="ObjectDesc" value="The workflow script object that calls the custom end workflow function.  This script closes the metadata records that are part of this process."/>
<DIAttribute name="ui_display_name" value="STATUS_DIM_UPD_END_SC"/>
<DIAttribute name="ui_script_text" value="#--- ABC ---&#xA;ABC_ENDWF_FN($L_IDENTIFIER, $G_PROCESS_ID);&#xA;&#xA;#---&#xA;if( $G_DEBUG_MODE = 1)&#xA;Begin&#xA;print(' ');&#xA;print(' ');&#xA;print('The Workfolw ' || workflow_name() || ' is completed running in Debug mode.');&#xA;print(' ');&#xA;print(' ');&#xA;END"/>
</DIUIOptions>
<DIFunctionCallStep typeId="23" >
<DIExpression isString="true" expr="abc_endwf_fn($L_IDENTIFIER, $G_PROCESS_ID)" >
<FUNCTION_CALL name="abc_endwf_fn"  type="DI" >
<VARIABLE_REFERENCE name="$L_IDENTIFIER" />
<VARIABLE_REFERENCE name="$G_PROCESS_ID" />
</FUNCTION_CALL>
</DIExpression>
</DIFunctionCallStep>
<DIIfStep typeId="2" >
<DIExpression isString="true" expr="($G_DEBUG_MODE = 1)" >
<LOGICAL_OP op="EQ">
<VARIABLE_REFERENCE name="$G_DEBUG_MODE" />
<CONSTANT value="1" datatype="INT" />
</LOGICAL_OP>
</DIExpression>
<DIIf>
<DIFunctionCallStep typeId="23" >
<DIExpression isString="true" expr="print(' ')" >
<FUNCTION_CALL name="print"  type="DI" >
<CONSTANT value=" " datatype="VARCHAR" size="1" />
</FUNCTION_CALL>
</DIExpression>
</DIFunctionCallStep>
<DIFunctionCallStep typeId="23" >
<DIExpression isString="true" expr="print(' ')" >
<FUNCTION_CALL name="print"  type="DI" >
<CONSTANT value=" " datatype="VARCHAR" size="1" />
</FUNCTION_CALL>
</DIExpression>
</DIFunctionCallStep>
<DIFunctionCallStep typeId="23" >
<DIExpression isString="true" expr="print((('The Workfolw ' || workflow_name()) || ' is completed running in Debug mode.'))" >
<FUNCTION_CALL name="print"  type="DI" >
<CONCAT>
<CONCAT>
<CONSTANT value="The Workfolw " datatype="VARCHAR" size="13" />
<FUNCTION_CALL name="workflow_name"  type="DI" />
</CONCAT>
<CONSTANT value=" is completed running in Debug mode." datatype="VARCHAR" size="36" />
</CONCAT>
</FUNCTION_CALL>
</DIExpression>
</DIFunctionCallStep>
<DIFunctionCallStep typeId="23" >
<DIExpression isString="true" expr="print(' ')" >
<FUNCTION_CALL name="print"  type="DI" >
<CONSTANT value=" " datatype="VARCHAR" size="1" />
</FUNCTION_CALL>
</DIExpression>
</DIFunctionCallStep>
<DIFunctionCallStep typeId="23" >
<DIExpression isString="true" expr="print(' ')" >
<FUNCTION_CALL name="print"  type="DI" >
<CONSTANT value=" " datatype="VARCHAR" size="1" />
</FUNCTION_CALL>
</DIExpression>
</DIFunctionCallStep>
</DIIf>
</DIIfStep>
</DIScript>
</DISteps>
<DICatch typeId="20" errorCode="210101" >
<DIUIOptions>
<DIAttribute name="ObjectDesc" value="The workflow catch object is the end of the TRY/CATCH block in BO DS.  This catch block will contain the script object that calls a custom fail workflow function used to write the metadata for failed jobs."/>
<DIAttribute name="ui_display_name" value="STATUS_DIM_UPD_CATCH"/>
</DIUIOptions>
<DISteps>
<DIScript>
<DIUIOptions>
<DIAttribute name="ui_display_name" value="STATUS_DIM_UPD_FAIL_SC"/>
<DIAttribute name="ui_script_text" value="#ABC - CALL FUNCTION TO TRACK END OF WORKFLOW&#xA;ABC_FAILWF_FN(workflow_name(), $G_PROCESS_ID, 'Error: \[' || error_number() || '\] ' || error_message());&#xA;&#xA;#--&#xA;print(' ');&#xA;print(' ');&#xA;print('Message from the ' || workflow_name() || '_CATCH Block Script:');&#xA;print('The Workflow ' || workflow_name() || ' has failed to run.');&#xA;print(' ');&#xA;print(' ');"/>
</DIUIOptions>
<DIFunctionCallStep typeId="23" >
<DIExpression isString="true" expr="abc_failwf_fn(workflow_name(), $G_PROCESS_ID, ((('Error: \\[' || error_number()) || '\\] ') || error_message()))" >
<FUNCTION_CALL name="abc_failwf_fn"  type="DI" >
<FUNCTION_CALL name="workflow_name"  type="DI" />
<VARIABLE_REFERENCE name="$G_PROCESS_ID" />
<CONCAT>
<CONCAT>
<CONCAT>
<CONSTANT value="Error: \[" datatype="VARCHAR" size="9" />
<FUNCTION_CALL name="error_number"  type="DI" />
</CONCAT>
<CONSTANT value="\] " datatype="VARCHAR" size="3" />
</CONCAT>
<FUNCTION_CALL name="error_message"  type="DI" />
</CONCAT>
</FUNCTION_CALL>
</DIExpression>
</DIFunctionCallStep>
<DIFunctionCallStep typeId="23" >
<DIExpression isString="true" expr="print(' ')" >
<FUNCTION_CALL name="print"  type="DI" >
<CONSTANT value=" " datatype="VARCHAR" size="1" />
</FUNCTION_CALL>
</DIExpression>
</DIFunctionCallStep>
<DIFunctionCallStep typeId="23" >
<DIExpression isString="true" expr="print(' ')" >
<FUNCTION_CALL name="print"  type="DI" >
<CONSTANT value=" " datatype="VARCHAR" size="1" />
</FUNCTION_CALL>
</DIExpression>
</DIFunctionCallStep>
<DIFunctionCallStep typeId="23" >
<DIExpression isString="true" expr="print((('Message from the ' || workflow_name()) || '_CATCH Block Script:'))" >
<FUNCTION_CALL name="print"  type="DI" >
<CONCAT>
<CONCAT>
<CONSTANT value="Message from the " datatype="VARCHAR" size="17" />
<FUNCTION_CALL name="workflow_name"  type="DI" />
</CONCAT>
<CONSTANT value="_CATCH Block Script:" datatype="VARCHAR" size="20" />
</CONCAT>
</FUNCTION_CALL>
</DIExpression>
</DIFunctionCallStep>
<DIFunctionCallStep typeId="23" >
<DIExpression isString="true" expr="print((('The Workflow ' || workflow_name()) || ' has failed to run.'))" >
<FUNCTION_CALL name="print"  type="DI" >
<CONCAT>
<CONCAT>
<CONSTANT value="The Workflow " datatype="VARCHAR" size="13" />
<FUNCTION_CALL name="workflow_name"  type="DI" />
</CONCAT>
<CONSTANT value=" has failed to run." datatype="VARCHAR" size="19" />
</CONCAT>
</FUNCTION_CALL>
</DIExpression>
</DIFunctionCallStep>
<DIFunctionCallStep typeId="23" >
<DIExpression isString="true" expr="print(' ')" >
<FUNCTION_CALL name="print"  type="DI" >
<CONSTANT value=" " datatype="VARCHAR" size="1" />
</FUNCTION_CALL>
</DIExpression>
</DIFunctionCallStep>
<DIFunctionCallStep typeId="23" >
<DIExpression isString="true" expr="print(' ')" >
<FUNCTION_CALL name="print"  type="DI" >
<CONSTANT value=" " datatype="VARCHAR" size="1" />
</FUNCTION_CALL>
</DIExpression>
</DIFunctionCallStep>
</DIScript>
</DISteps>
</DICatch>
</DITryStep>
</DISteps>
<DIAttributes>
<DIAttribute name="run_once" value="no"/>
<DIAttribute name="unit_of_recovery" value="no"/>
</DIAttributes>
</DIWorkflow>
<DIDataflow name="STATUS_DIM_UPD_DF" typeId="1" >
<DIProperties>
<DIAttribute name="Description" value="The dataflow is responsible for sourcing the records in the XFRN table and adding the new record into the DIM table"/>
</DIProperties>
<DITransforms>
<DIDatabaseTableSource typeId="22" datastoreName="DWSTAGING_DS" ownerName="DWSTAGING_ALIAS" tableName="STATUS_DIM_XFRU_V" >
<DIOutputView name="STATUS_DIM_XFRU_V"  />
<DIAttributes>
<DIAttribute name="array_fetch_size" value="1000"/>
<DIAttribute name="cache" value="yes"/>
<DIAttribute name="connection_port" value="no"/>
<DIAttribute name="enable_partitioning" value="no"/>
<DIAttribute name="name" value="DWSTAGING_DS"/>
<DIAttribute name="package_size" value="0"/>
<DIAttribute name="reader_is_DB2CDC_table" value="no"/>
<DIAttribute name="reader_overflow_file" value="overflow_file"/>
<DIAttribute name="reader_template_table" value="no"/>
<DIAttribute name="reader_use_overflow_file" value="no"/>
<DIAttribute name="reader_use_trex_transaction" value="no"/>
<DIAttribute name="table_weight" value="0"/>
</DIAttributes>
</DIDatabaseTableSource>

<DIDatabaseTableTarget typeID="11" bulkLoader="false" datastoreName="DW_DS" ownerName="DW_ALIAS" tableName="STATUS_DIM" >
<DIInputView name="STATUS_DIM_XFRU_V"  />
<DIAttributes>
<DIAttribute name="LDRLiveLoad" value="no"/>
<DIAttribute name="Table_Type" value="TABLE"/>
<DIAttribute name="connection_port" value="no"/>
<DIAttribute name="ldr_configuration_enabled" value="yes"/>
<DIAttribute name="ldr_configurations" hasNestedXMLTree ="true">

<LDRConfigurations>
<LDRConfiguration database_type="Microsoft_SQL_Server" database_version="Microsoft SQL Server 2005">
<auto_correct_using_merge>yes</auto_correct_using_merge>
<bulk_ldr_all_rows></bulk_ldr_all_rows>
<bulk_ldr_max_errors></bulk_ldr_max_errors>
<bulk_ldr_rows_per_commit>1000</bulk_ldr_rows_per_commit>
<enable_partitioning>no</enable_partitioning>
<ignore_column_case>yes</ignore_column_case>
<ignore_columns_null>yes</ignore_columns_null>
<ignore_columns_value></ignore_columns_value>
<loader_auto_correct>yes</loader_auto_correct>
<loader_bulk_load></loader_bulk_load>
<loader_compare_column>compare_by_name</loader_compare_column>
<loader_delete_map></loader_delete_map>
<loader_drop_and_create_table>no</loader_drop_and_create_table>
<loader_insert_map></loader_insert_map>
<loader_load_choice>append</loader_load_choice>
<loader_num_parallel_loaders>1</loader_num_parallel_loaders>
<loader_overflow_file>overflow_file</loader_overflow_file>
<loader_post_load1></loader_post_load1>
<loader_pre_load1></loader_pre_load1>
<loader_quote_names>0</loader_quote_names>
<loader_transactional>no</loader_transactional>
<loader_transactional_order>0</loader_transactional_order>
<loader_update_key_columns>yes</loader_update_key_columns>
<loader_update_map></loader_update_map>
<loader_use_user_defined_keys>no</loader_use_user_defined_keys>
<loader_xact_size>1000</loader_xact_size>
<mssql_bulk_ldr_mode>append</mssql_bulk_ldr_mode>
<mssql_bulk_ldr_packet_size>0</mssql_bulk_ldr_packet_size>
<overflow_file_format>write_data</overflow_file_format>
<overriding_substitution_parameter_for_tablename></overriding_substitution_parameter_for_tablename>
<use_overflow_file>no</use_overflow_file>
<use_unicode_varchar>no</use_unicode_varchar>
<sql_text></sql_text>
</LDRConfiguration>
</LDRConfigurations>
</DIAttribute>
<DIAttribute name="loader_template_table" value="no"/>
<DIAttribute name="name" value="DW_DS"/>
<DIAttribute name="use_unicode_varchar" value="no"/>
</DIAttributes>
</DIDatabaseTableTarget>

</DITransforms>
<DIAttributes>
<DIAttribute name="Cache_type" value="pageable_cache"/>
<DIAttribute name="Parallelism_degree" value="0"/>
<DIAttribute name="allows_both_input_and_output" value="yes"/>
<DIAttribute name="run_once" value="no"/>
<DIAttribute name="use_dataflow_links" value="no"/>
<DIAttribute name="use_datastore_links" value="yes"/>
<DIAttribute name="validation_xform_exists" value="no"/>
<DIAttribute name="validation_xform_stats" value="no"/>
</DIAttributes>
</DIDataflow>
<DIWorkflow name="EXTN_CSNP_CONT_WF" typeId="2" >
<DIUIOptions>
<DIAnnotation name="ANNOTATION_0"><DIAttribute name="ObjectDesc" value="This workflow is a container for the entities concerned by the CSNP ETL Step for the external files"/>
</DIAnnotation></DIUIOptions>
<DIProperties>
<DIAttribute name="GeneratorTemplate" value="ENTITY_LEVEL_FOR_PRODUCT_CONTAINER_WF (version 0.13.0-SNAPSHOT)"/>
<DIAttribute name="GeneratorVersion" value="v1.0"/>
<DIAttribute name="GenerationDate" value="Fri, 23 Jan 2009 10:49:48"/>
<DIAttribute name="Description" value="This workflow is a container for the entities concerned by the CSNP ETL Step for the external files. It integrates the following entities:&#xD;&#xA;  - BUDGET (version 1.0)&#xD;&#xA;  - COSTCATEGORY (version 1.0)&#xD;&#xA;  - MEASURETYPE (version 1.0)&#xD;&#xA;  - STATUS (version 1.0)&#xD;&#xA;"/>
</DIProperties>
<DISteps>
<DICallStep typeId="0"  calledObjectType="Workflow" name="BUDGET_CSNP_WF" >
</DICallStep>
<DICallStep typeId="0"  calledObjectType="Workflow" name="COSTCATEGORY_CSNP_WF" >
</DICallStep>
<DICallStep typeId="0"  calledObjectType="Workflow" name="MEASURETYPE_CSNP_WF" >
</DICallStep>
<DICallStep typeId="0"  calledObjectType="Workflow" name="STATUS_CSNP_WF" >
</DICallStep>
</DISteps>
<DIAttributes>
<DIAttribute name="run_once" value="no"/>
<DIAttribute name="unit_of_recovery" value="no"/>
</DIAttributes>
</DIWorkflow>
<DIWorkflow name="BUDGET_CSNP_WF" typeId="2" >
<DIProperties>
<DIAttribute name="Description" value="This workflow sources records from multiple source consolidation to consolidated snapshot tables."/>
</DIProperties>
<DISteps>
<DITryStep typeId="13" >
<DIUIOptions>
<DIAttribute name="AutoLayout" value="yes"/>
<DIAttribute name="ObjectDesc" value="The Try of the Try / Catch Block"/>
<DIAttribute name="ui_display_name" value="BUDGET_CSNP_TRY"/>
</DIUIOptions>
<DISteps>
<DIScript>
<DIUIOptions>
<DIAttribute name="ObjectDesc" value="The script that calls the custom function that initiates the metadata tracking for the workflow. The script will also be used to populate the local workflow variables."/>
<DIAttribute name="ui_display_name" value="BUDGET_CSNP_START_SC"/>
<DIAttribute name="ui_script_text" value="# CALL FUNCTION TO TRACK START OF WORKFLOW&#xA;ABC_STARTWF_FN(workflow_name(), $G_PROCESS_ID);&#xA;&#xA;CSNP_RERUN_CLEANUP('BUDGET',$G_BATCH_ID,$G_FLAG_NEW);"/>
</DIUIOptions>
<DIFunctionCallStep typeId="23" >
<DIExpression isString="true" expr="abc_startwf_fn(workflow_name(), $G_PROCESS_ID)" >
<FUNCTION_CALL name="abc_startwf_fn"  type="DI" >
<FUNCTION_CALL name="workflow_name"  type="DI" />
<VARIABLE_REFERENCE name="$G_PROCESS_ID" />
</FUNCTION_CALL>
</DIExpression>
</DIFunctionCallStep>
<DIFunctionCallStep typeId="23" >
<DIExpression isString="true" expr="csnp_rerun_cleanup('BUDGET', $G_BATCH_ID, $G_FLAG_NEW)" >
<FUNCTION_CALL name="csnp_rerun_cleanup"  type="DI" >
<CONSTANT value="BUDGET" datatype="VARCHAR" size="6" />
<VARIABLE_REFERENCE name="$G_BATCH_ID" />
<VARIABLE_REFERENCE name="$G_FLAG_NEW" />
</FUNCTION_CALL>
</DIExpression>
</DIFunctionCallStep>
</DIScript>
<DICallStep typeId="1"  calledObjectType="Dataflow" name="BUDGET_CSNP_DF" >
</DICallStep>
<DIScript>
<DIUIOptions>
<DIAttribute name="ObjectDesc" value="This script that calls the custom function that closes the metadata records that are part of tracking the workflow process."/>
<DIAttribute name="ui_display_name" value="BUDGET_CSNP_END_SC"/>
<DIAttribute name="ui_script_text" value="# CALL FUNCTION TO TRACK END OF WORKFLOW&#xA;ABC_ENDWF_FN(workflow_name(), $G_PROCESS_ID);"/>
</DIUIOptions>
<DIFunctionCallStep typeId="23" >
<DIExpression isString="true" expr="abc_endwf_fn(workflow_name(), $G_PROCESS_ID)" >
<FUNCTION_CALL name="abc_endwf_fn"  type="DI" >
<FUNCTION_CALL name="workflow_name"  type="DI" />
<VARIABLE_REFERENCE name="$G_PROCESS_ID" />
</FUNCTION_CALL>
</DIExpression>
</DIFunctionCallStep>
</DIScript>
</DISteps>
<DICatch typeId="20" errorCode="210101" >
<DIUIOptions>
<DIAttribute name="AutoLayout" value="yes"/>
<DIAttribute name="ObjectDesc" value="The workflow catch object is the end of the TRY/CATCH block in BO DS.  This catch block contains the script object that calls a custom fail workflow function used to write the metadata for failed jobs.&#xA;"/>
<DIAttribute name="ui_display_name" value="BUDGET_CSNP_CATCH"/>
</DIUIOptions>
<DISteps>
<DIScript>
<DIUIOptions>
<DIAttribute name="ObjectDesc" value="The script that calls the custom function that is used to write the metadata for failed workflows."/>
<DIAttribute name="ui_display_name" value="BUDGET_CSNP_FAIL_SC"/>
<DIAttribute name="ui_script_text" value="# CALL FUNCTION TO TRACK FAIL OF WORKFLOW&#xA;ABC_FAILWF_FN(workflow_name(), $G_PROCESS_ID, 'Error: \[' || error_number() || '\] ' || error_message());"/>
</DIUIOptions>
<DIFunctionCallStep typeId="23" >
<DIExpression isString="true" expr="abc_failwf_fn(workflow_name(), $G_PROCESS_ID, ((('Error: \\[' || error_number()) || '\\] ') || error_message()))" >
<FUNCTION_CALL name="abc_failwf_fn"  type="DI" >
<FUNCTION_CALL name="workflow_name"  type="DI" />
<VARIABLE_REFERENCE name="$G_PROCESS_ID" />
<CONCAT>
<CONCAT>
<CONCAT>
<CONSTANT value="Error: \[" datatype="VARCHAR" size="9" />
<FUNCTION_CALL name="error_number"  type="DI" />
</CONCAT>
<CONSTANT value="\] " datatype="VARCHAR" size="3" />
</CONCAT>
<FUNCTION_CALL name="error_message"  type="DI" />
</CONCAT>
</FUNCTION_CALL>
</DIExpression>
</DIFunctionCallStep>
</DIScript>
</DISteps>
</DICatch>
</DITryStep>
</DISteps>
<DIAttributes>
<DIAttribute name="run_once" value="no"/>
<DIAttribute name="unit_of_recovery" value="no"/>
</DIAttributes>
</DIWorkflow>
<DIDataflow name="BUDGET_CSNP_DF" typeId="1" >
<DIUIOptions>
<DIAnnotation name="ANNOTATION_0"><DIAttribute name="ObjectDesc" value="This dataflow sources records from the MSC to CSNP tables. New records in the MSC tables are added to the CSNP table, Update records in MSC are updated in CSNP, and delete records are deleted from the CSNP table."/>
</DIAnnotation><DIAttribute name="AutoLayout" value="yes"/>
</DIUIOptions>
<DIProperties>
<DIAttribute name="Description" value="This dataflow sources records from multiple source consolidation to consolidated snapshot tables."/>
</DIProperties>
<DITransforms>
<DITransformCall typeId="111" name="Map_Operation" >
<DIUIOptions>
<DIAttribute name="ObjectDesc" value="Map records as insert"/>
<DIAttribute name="ui_display_name" value="MO_INSERT"/>
</DIUIOptions>
<DIInputView name="QRY_NEW"  />
<DISchema name="MO_INSERT_1" >
</DISchema>
<DIAttributes>
<DIAttribute name="delete" value="discard"/>
<DIAttribute name="insert" value="discard"/>
<DIAttribute name="normal" value="insert"/>
<DIAttribute name="update" value="discard"/>
</DIAttributes>
</DITransformCall>
<DITransformCall typeId="111" name="Merge" >
<DIUIOptions>
<DIAttribute name="ObjectDesc" value="Merge new, update, and delete records"/>
<DIAttribute name="ui_display_name" value="MRG_NEW_UPD_DEL"/>
</DIUIOptions>
<DIInputView name="MO_INSERT_1"  />
<DIInputView name="MO_UPDATE"  />
<DISchema name="MRG_NEW_UPD_DEL_1" >
</DISchema>
</DITransformCall>

<!-- GUID is optional -->
<DITransformCall typeId="210" name="Case_Operation"  >
<DIUIOptions>
<DIAttribute name="CS_MD_FLAG_CS_NEW" value="BUDGET_MSC_V.MD_FLAG = $G_FLAG_NEW "/>
<DIAttribute name="CS_MD_FLAG_CS_UPD" value="BUDGET_MSC_V.MD_FLAG = $G_FLAG_UPDATE "/>
<DIAttribute name="ObjectDesc" value="Check the value of the incoming MD_FLAG to determine the case statement to execute"/>
<DIAttribute name="ui_acta_from_schema_0" value="BUDGET_MSC_V"/>
<DIAttribute name="ui_display_name" value="CS_MD_FLAG"/>
</DIUIOptions>
<DIInputView name="BUDGET_MSC_V" />
<DISchema name="CS_MD_FLAG" >
</DISchema>
<DICase>
<DISwitch label="CS_NEW" outputView="CS_MD_FLAG_CS_NEW" isDefault="false">
<DIExpression isString="true" expr="(BUDGET_MSC_V.MD_FLAG = $G_FLAG_NEW)" >
<LOGICAL_OP op="EQ">
<COLUMN_REFERENCE  qualifier1="BUDGET_MSC_V" column="MD_FLAG" />
<VARIABLE_REFERENCE name="$G_FLAG_NEW" />
</LOGICAL_OP>
</DIExpression>
</DISwitch>
<DISwitch label="CS_UPD" outputView="CS_MD_FLAG_CS_UPD" isDefault="false">
<DIExpression isString="true" expr="(BUDGET_MSC_V.MD_FLAG = $G_FLAG_UPDATE)" >
<LOGICAL_OP op="EQ">
<COLUMN_REFERENCE  qualifier1="BUDGET_MSC_V" column="MD_FLAG" />
<VARIABLE_REFERENCE name="$G_FLAG_UPDATE" />
</LOGICAL_OP>
</DIExpression>
</DISwitch>
</DICase>
<DIAttributes>
<DIAttribute name="Mutually_Exclusive" value="yes"/>
<DIAttribute name="Preserve_Expression_Order" value="no"/>
</DIAttributes>
</DITransformCall>
<DIQuery typeId="122"  >
<DIUIOptions>
<DIAttribute name="ObjectDesc" value="This query filters out only the records marked as new and sets the BATCH and PROCESS_ID fields"/>
<DIAttribute name="ui_acta_from_schema_0" value="CS_MD_FLAG_CS_NEW"/>
<DIAttribute name="ui_display_name" value="QRY_NEW"/>
</DIUIOptions>
<DISchema name="QRY_NEW" >
<DIElement name="MD_BATCH_ID" datatype="DECIMAL" precision="19" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_NEW.MD_BATCH_ID"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_PROCESS_ID" datatype="DECIMAL" precision="19" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_NEW.MD_PROCESS_ID"/>
</DIAttributes>
</DIElement>
<DIElement name="BUDGET_NAME" datatype="VARCHAR" size="60" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_NEW.BUDGET_NAME"/>
</DIAttributes>
</DIElement>
<DIElement name="BUDGET_NAME_ALT" datatype="VARCHAR" size="60" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_NEW.BUDGET_NAME_ALT"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_BUSINESS_KEY" datatype="VARCHAR" size="100" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_NEW.MD_BUSINESS_KEY"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_ENTERPRISE_KEY" datatype="DECIMAL" precision="18" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_NEW.MD_ENTERPRISE_KEY"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_FLAG" datatype="VARCHAR" size="10" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_NEW.MD_FLAG"/>
</DIAttributes>
</DIElement>
</DISchema>
<DISelect>
<DIProjection>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_NEW.MD_BATCH_ID" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_NEW" column="MD_BATCH_ID" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_NEW.MD_PROCESS_ID" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_NEW" column="MD_PROCESS_ID" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_NEW.BUDGET_NAME" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_NEW" column="BUDGET_NAME" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_NEW.BUDGET_NAME_ALT" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_NEW" column="BUDGET_NAME_ALT" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_NEW.MD_BUSINESS_KEY" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_NEW" column="MD_BUSINESS_KEY" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_NEW.MD_ENTERPRISE_KEY" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_NEW" column="MD_ENTERPRISE_KEY" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_NEW.MD_FLAG" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_NEW" column="MD_FLAG" />
</DIExpression>
</DIProjection>
<DIFrom>
<DITableSpec name="CS_MD_FLAG_CS_NEW" />
</DIFrom>
</DISelect>
<DIAttributes>
<DIAttribute name="distinct_run_as_separate_process" value="no"/>
<DIAttribute name="group_by_run_as_separate_process" value="no"/>
<DIAttribute name="join_run_as_separate_process" value="no"/>
<DIAttribute name="order_by_run_as_separate_process" value="no"/>
<DIAttribute name="run_as_separate_process" value="no"/>
</DIAttributes>
</DIQuery>

<DIQuery typeId="122"  >
<DIUIOptions>
<DIAttribute name="ObjectDesc" value="This query filters out only the records marked as update and sets the BATCH and PROCESS_ID fields"/>
<DIAttribute name="ui_acta_from_schema_0" value="CS_MD_FLAG_CS_UPD"/>
<DIAttribute name="ui_display_name" value="QRY_UPD"/>
</DIUIOptions>
<DISchema name="QRY_UPD" >
<DIElement name="MD_BATCH_ID" datatype="DECIMAL" precision="19" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_UPD.MD_BATCH_ID"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_PROCESS_ID" datatype="DECIMAL" precision="19" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_UPD.MD_PROCESS_ID"/>
</DIAttributes>
</DIElement>
<DIElement name="BUDGET_NAME" datatype="VARCHAR" size="60" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_UPD.BUDGET_NAME"/>
</DIAttributes>
</DIElement>
<DIElement name="BUDGET_NAME_ALT" datatype="VARCHAR" size="60" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_UPD.BUDGET_NAME_ALT"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_BUSINESS_KEY" datatype="VARCHAR" size="100" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_UPD.MD_BUSINESS_KEY"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_ENTERPRISE_KEY" datatype="DECIMAL" precision="18" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_UPD.MD_ENTERPRISE_KEY"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_FLAG" datatype="VARCHAR" size="10" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_UPD.MD_FLAG"/>
</DIAttributes>
</DIElement>
</DISchema>
<DISelect>
<DIProjection>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_UPD.MD_BATCH_ID" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_UPD" column="MD_BATCH_ID" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_UPD.MD_PROCESS_ID" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_UPD" column="MD_PROCESS_ID" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_UPD.BUDGET_NAME" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_UPD" column="BUDGET_NAME" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_UPD.BUDGET_NAME_ALT" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_UPD" column="BUDGET_NAME_ALT" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_UPD.MD_BUSINESS_KEY" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_UPD" column="MD_BUSINESS_KEY" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_UPD.MD_ENTERPRISE_KEY" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_UPD" column="MD_ENTERPRISE_KEY" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_UPD.MD_FLAG" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_UPD" column="MD_FLAG" />
</DIExpression>
</DIProjection>
<DIFrom>
<DITableSpec name="CS_MD_FLAG_CS_UPD" />
</DIFrom>
</DISelect>
<DIAttributes>
<DIAttribute name="distinct_run_as_separate_process" value="no"/>
<DIAttribute name="group_by_run_as_separate_process" value="no"/>
<DIAttribute name="join_run_as_separate_process" value="no"/>
<DIAttribute name="order_by_run_as_separate_process" value="no"/>
<DIAttribute name="run_as_separate_process" value="no"/>
</DIAttributes>
</DIQuery>

<DITransformCall typeId="111" name="Map_Operation" >
<DIUIOptions>
<DIAttribute name="ObjectDesc" value="Map records as update"/>
<DIAttribute name="ui_display_name" value="MO_UPDATE"/>
</DIUIOptions>
<DIInputView name="QRY_UPD"  />
<DISchema name="MO_UPDATE" >
</DISchema>
<DIAttributes>
<DIAttribute name="delete" value="discard"/>
<DIAttribute name="insert" value="discard"/>
<DIAttribute name="normal" value="update"/>
<DIAttribute name="update" value="discard"/>
</DIAttributes>
</DITransformCall>
<DIDatabaseTableTarget typeID="11" bulkLoader="false" datastoreName="DWSTAGING_DS" ownerName="DWSTAGING_ALIAS" tableName="BUDGET_CSNP" >
<DIInputView name="MRG_NEW_UPD_DEL_1"  />
<DIAttributes>
<DIAttribute name="LDRLiveLoad" value="no"/>
<DIAttribute name="Table_Type" value="TABLE"/>
<DIAttribute name="connection_port" value="no"/>
<DIAttribute name="ldr_configuration_enabled" value="yes"/>
<DIAttribute name="ldr_configurations" hasNestedXMLTree ="true">
<LDRConfigurations>
<LDRConfiguration database_type="Microsoft_SQL_Server" database_version="Microsoft SQL Server 2005">
<auto_correct_using_merge>Yes</auto_correct_using_merge>
<bulk_ldr_all_rows/>
<bulk_ldr_max_errors/>
<bulk_ldr_rows_per_commit/>
<enable_partitioning>no</enable_partitioning>
<ignore_column_case>yes</ignore_column_case>
<ignore_columns_null>no</ignore_columns_null>
<ignore_columns_value/>
<loader_auto_correct>yes</loader_auto_correct>
<loader_bulk_load>0</loader_bulk_load>
<loader_compare_column>compare_by_name</loader_compare_column>
<loader_delete_map/>
<loader_drop_and_create_table>no</loader_drop_and_create_table>
<loader_insert_map/>
<loader_load_choice>append</loader_load_choice>
<loader_num_parallel_loaders>1</loader_num_parallel_loaders>
<loader_overflow_file>overflow_file</loader_overflow_file>
<loader_post_load1/>
<loader_pre_load1/>
<loader_quote_names>0</loader_quote_names>
<loader_transactional>no</loader_transactional>
<loader_transactional_order>0</loader_transactional_order>
<loader_update_key_columns>no</loader_update_key_columns>
<loader_update_map/>
<loader_use_user_defined_keys>no</loader_use_user_defined_keys>
<loader_xact_size>1000</loader_xact_size>
<mssql_bulk_ldr_mode>truncate</mssql_bulk_ldr_mode>
<mssql_bulk_ldr_packet_size>4</mssql_bulk_ldr_packet_size>
<overflow_file_format>Write data</overflow_file_format>
<overriding_substitution_parameter_for_tablename/>
<use_overflow_file>no</use_overflow_file>
<use_unicode_varchar>no</use_unicode_varchar>
<sql_text/>
</LDRConfiguration>
</LDRConfigurations>
</DIAttribute>
<DIAttribute name="loader_template_table" value="no"/>
<DIAttribute name="name" value="DWSTAGING_DS"/>
<DIAttribute name="use_unicode_varchar" value="no"/>
</DIAttributes>
</DIDatabaseTableTarget>

<DIDatabaseTableSource typeId="22" datastoreName="DWSTAGING_DS" ownerName="DWSTAGING_ALIAS" tableName="BUDGET_MSC_V" >
<DIOutputView name="BUDGET_MSC_V"  />
<DIAttributes>
<DIAttribute name="array_fetch_size" value="1000"/>
<DIAttribute name="cache" value="yes"/>
<DIAttribute name="connection_port" value="no"/>
<DIAttribute name="enable_partitioning" value="no"/>
<DIAttribute name="name" value="DWSTAGING_DS"/>
<DIAttribute name="package_size" value="0"/>
<DIAttribute name="reader_is_DB2CDC_table" value="no"/>
<DIAttribute name="reader_overflow_file" value="overflow_file"/>
<DIAttribute name="reader_template_table" value="no"/>
<DIAttribute name="reader_use_overflow_file" value="no"/>
<DIAttribute name="reader_use_trex_transaction" value="no"/>
<DIAttribute name="table_weight" value="0"/>
</DIAttributes>
</DIDatabaseTableSource>

</DITransforms>
<DIAttributes>
<DIAttribute name="Cache_type" value="pageable_cache"/>
<DIAttribute name="Parallelism_degree" value="0"/>
<DIAttribute name="allows_both_input_and_output" value="yes"/>
<DIAttribute name="run_once" value="no"/>
<DIAttribute name="use_dataflow_links" value="no"/>
<DIAttribute name="use_datastore_links" value="yes"/>
<DIAttribute name="validation_xform_exists" value="no"/>
<DIAttribute name="validation_xform_stats" value="no"/>
</DIAttributes>
</DIDataflow>
<DIWorkflow name="COSTCATEGORY_CSNP_WF" typeId="2" >
<DIProperties>
<DIAttribute name="Description" value="This workflow sources records from multiple source consolidation to consolidated snapshot tables."/>
</DIProperties>
<DISteps>
<DITryStep typeId="13" >
<DIUIOptions>
<DIAttribute name="AutoLayout" value="yes"/>
<DIAttribute name="ObjectDesc" value="The Try of the Try / Catch Block"/>
<DIAttribute name="ui_display_name" value="COSTCATEGORY_CSNP_TRY"/>
</DIUIOptions>
<DISteps>
<DIScript>
<DIUIOptions>
<DIAttribute name="ObjectDesc" value="The script that calls the custom function that initiates the metadata tracking for the workflow. The script will also be used to populate the local workflow variables."/>
<DIAttribute name="ui_display_name" value="COSTCATEGORY_CSNP_START_SC"/>
<DIAttribute name="ui_script_text" value="# CALL FUNCTION TO TRACK START OF WORKFLOW&#xA;ABC_STARTWF_FN(workflow_name(), $G_PROCESS_ID);&#xA;&#xA;CSNP_RERUN_CLEANUP('COSTCATEGORY',$G_BATCH_ID,$G_FLAG_NEW);"/>
</DIUIOptions>
<DIFunctionCallStep typeId="23" >
<DIExpression isString="true" expr="abc_startwf_fn(workflow_name(), $G_PROCESS_ID)" >
<FUNCTION_CALL name="abc_startwf_fn"  type="DI" >
<FUNCTION_CALL name="workflow_name"  type="DI" />
<VARIABLE_REFERENCE name="$G_PROCESS_ID" />
</FUNCTION_CALL>
</DIExpression>
</DIFunctionCallStep>
<DIFunctionCallStep typeId="23" >
<DIExpression isString="true" expr="csnp_rerun_cleanup('COSTCATEGORY', $G_BATCH_ID, $G_FLAG_NEW)" >
<FUNCTION_CALL name="csnp_rerun_cleanup"  type="DI" >
<CONSTANT value="COSTCATEGORY" datatype="VARCHAR" size="12" />
<VARIABLE_REFERENCE name="$G_BATCH_ID" />
<VARIABLE_REFERENCE name="$G_FLAG_NEW" />
</FUNCTION_CALL>
</DIExpression>
</DIFunctionCallStep>
</DIScript>
<DICallStep typeId="1"  calledObjectType="Dataflow" name="COSTCATEGORY_CSNP_DF" >
</DICallStep>
<DIScript>
<DIUIOptions>
<DIAttribute name="ObjectDesc" value="This script that calls the custom function that closes the metadata records that are part of tracking the workflow process."/>
<DIAttribute name="ui_display_name" value="COSTCATEGORY_CSNP_END_SC"/>
<DIAttribute name="ui_script_text" value="# CALL FUNCTION TO TRACK END OF WORKFLOW&#xA;ABC_ENDWF_FN(workflow_name(), $G_PROCESS_ID);"/>
</DIUIOptions>
<DIFunctionCallStep typeId="23" >
<DIExpression isString="true" expr="abc_endwf_fn(workflow_name(), $G_PROCESS_ID)" >
<FUNCTION_CALL name="abc_endwf_fn"  type="DI" >
<FUNCTION_CALL name="workflow_name"  type="DI" />
<VARIABLE_REFERENCE name="$G_PROCESS_ID" />
</FUNCTION_CALL>
</DIExpression>
</DIFunctionCallStep>
</DIScript>
</DISteps>
<DICatch typeId="20" errorCode="210101" >
<DIUIOptions>
<DIAttribute name="AutoLayout" value="yes"/>
<DIAttribute name="ObjectDesc" value="The workflow catch object is the end of the TRY/CATCH block in BO DS.  This catch block contains the script object that calls a custom fail workflow function used to write the metadata for failed jobs.&#xA;"/>
<DIAttribute name="ui_display_name" value="COSTCATEGORY_CSNP_CATCH"/>
</DIUIOptions>
<DISteps>
<DIScript>
<DIUIOptions>
<DIAttribute name="ObjectDesc" value="The script that calls the custom function that is used to write the metadata for failed workflows."/>
<DIAttribute name="ui_display_name" value="COSTCATEGORY_CSNP_FAIL_SC"/>
<DIAttribute name="ui_script_text" value="# CALL FUNCTION TO TRACK FAIL OF WORKFLOW&#xA;ABC_FAILWF_FN(workflow_name(), $G_PROCESS_ID, 'Error: \[' || error_number() || '\] ' || error_message());"/>
</DIUIOptions>
<DIFunctionCallStep typeId="23" >
<DIExpression isString="true" expr="abc_failwf_fn(workflow_name(), $G_PROCESS_ID, ((('Error: \\[' || error_number()) || '\\] ') || error_message()))" >
<FUNCTION_CALL name="abc_failwf_fn"  type="DI" >
<FUNCTION_CALL name="workflow_name"  type="DI" />
<VARIABLE_REFERENCE name="$G_PROCESS_ID" />
<CONCAT>
<CONCAT>
<CONCAT>
<CONSTANT value="Error: \[" datatype="VARCHAR" size="9" />
<FUNCTION_CALL name="error_number"  type="DI" />
</CONCAT>
<CONSTANT value="\] " datatype="VARCHAR" size="3" />
</CONCAT>
<FUNCTION_CALL name="error_message"  type="DI" />
</CONCAT>
</FUNCTION_CALL>
</DIExpression>
</DIFunctionCallStep>
</DIScript>
</DISteps>
</DICatch>
</DITryStep>
</DISteps>
<DIAttributes>
<DIAttribute name="run_once" value="no"/>
<DIAttribute name="unit_of_recovery" value="no"/>
</DIAttributes>
</DIWorkflow>
<DIDataflow name="COSTCATEGORY_CSNP_DF" typeId="1" >
<DIUIOptions>
<DIAnnotation name="ANNOTATION_0"><DIAttribute name="ObjectDesc" value="This dataflow sources records from the MSC to CSNP tables. New records in the MSC tables are added to the CSNP table, Update records in MSC are updated in CSNP, and delete records are deleted from the CSNP table."/>
</DIAnnotation><DIAttribute name="AutoLayout" value="yes"/>
</DIUIOptions>
<DIProperties>
<DIAttribute name="Description" value="This dataflow sources records from multiple source consolidation to consolidated snapshot tables."/>
</DIProperties>
<DITransforms>
<DIQuery typeId="122"  >
<DIUIOptions>
<DIAttribute name="ObjectDesc" value="This query filters out only the records marked as new and sets the BATCH and PROCESS_ID fields"/>
<DIAttribute name="ui_acta_from_schema_0" value="COSTCATEGORY_MSC_V"/>
<DIAttribute name="ui_display_name" value="QRY_NEW"/>
</DIUIOptions>
<DISchema name="QRY_NEW" >
<DIElement name="MD_BATCH_ID" datatype="DECIMAL" precision="19" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="COSTCATEGORY_MSC_V.MD_BATCH_ID"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_PROCESS_ID" datatype="DECIMAL" precision="19" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="COSTCATEGORY_MSC_V.MD_PROCESS_ID"/>
</DIAttributes>
</DIElement>
<DIElement name="ACCOUNTING_CODE" datatype="VARCHAR" size="60" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="COSTCATEGORY_MSC_V.ACCOUNTING_CODE"/>
</DIAttributes>
</DIElement>
<DIElement name="COSTCATEGORY_NAME" datatype="VARCHAR" size="60" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="COSTCATEGORY_MSC_V.COSTCATEGORY_NAME"/>
</DIAttributes>
</DIElement>
<DIElement name="COSTCATEGORY_NAME_ALT" datatype="VARCHAR" size="60" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="COSTCATEGORY_MSC_V.COSTCATEGORY_NAME_ALT"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_BUSINESS_KEY" datatype="VARCHAR" size="100" key="true" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="COSTCATEGORY_MSC_V.MD_BUSINESS_KEY"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_ENTERPRISE_KEY" datatype="DECIMAL" precision="18" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="COSTCATEGORY_MSC_V.MD_ENTERPRISE_KEY"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_FLAG" datatype="VARCHAR" size="10" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="COSTCATEGORY_MSC_V.MD_FLAG"/>
</DIAttributes>
</DIElement>
<DIElement name="SUB_CATEGORY" datatype="VARCHAR" size="60" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="COSTCATEGORY_MSC_V.SUB_CATEGORY"/>
</DIAttributes>
</DIElement>
<DIElement name="DETAILED_CATEGORY" datatype="VARCHAR" size="60" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="COSTCATEGORY_MSC_V.DETAILED_CATEGORY"/>
</DIAttributes>
</DIElement>
</DISchema>
<DISelect>
<DIProjection>
<DIExpression isString="true" expr="COSTCATEGORY_MSC_V.MD_BATCH_ID" >
<COLUMN_REFERENCE  qualifier1="COSTCATEGORY_MSC_V" column="MD_BATCH_ID" />
</DIExpression>
<DIExpression isString="true" expr="COSTCATEGORY_MSC_V.MD_PROCESS_ID" >
<COLUMN_REFERENCE  qualifier1="COSTCATEGORY_MSC_V" column="MD_PROCESS_ID" />
</DIExpression>
<DIExpression isString="true" expr="COSTCATEGORY_MSC_V.ACCOUNTING_CODE" >
<COLUMN_REFERENCE  qualifier1="COSTCATEGORY_MSC_V" column="ACCOUNTING_CODE" />
</DIExpression>
<DIExpression isString="true" expr="COSTCATEGORY_MSC_V.COSTCATEGORY_NAME" >
<COLUMN_REFERENCE  qualifier1="COSTCATEGORY_MSC_V" column="COSTCATEGORY_NAME" />
</DIExpression>
<DIExpression isString="true" expr="COSTCATEGORY_MSC_V.COSTCATEGORY_NAME_ALT" >
<COLUMN_REFERENCE  qualifier1="COSTCATEGORY_MSC_V" column="COSTCATEGORY_NAME_ALT" />
</DIExpression>
<DIExpression isString="true" expr="COSTCATEGORY_MSC_V.MD_BUSINESS_KEY" >
<COLUMN_REFERENCE  qualifier1="COSTCATEGORY_MSC_V" column="MD_BUSINESS_KEY" />
</DIExpression>
<DIExpression isString="true" expr="COSTCATEGORY_MSC_V.MD_ENTERPRISE_KEY" >
<COLUMN_REFERENCE  qualifier1="COSTCATEGORY_MSC_V" column="MD_ENTERPRISE_KEY" />
</DIExpression>
<DIExpression isString="true" expr="COSTCATEGORY_MSC_V.MD_FLAG" >
<COLUMN_REFERENCE  qualifier1="COSTCATEGORY_MSC_V" column="MD_FLAG" />
</DIExpression>
<DIExpression isString="true" expr="COSTCATEGORY_MSC_V.SUB_CATEGORY" >
<COLUMN_REFERENCE  qualifier1="COSTCATEGORY_MSC_V" column="SUB_CATEGORY" />
</DIExpression>
<DIExpression isString="true" expr="COSTCATEGORY_MSC_V.DETAILED_CATEGORY" >
<COLUMN_REFERENCE  qualifier1="COSTCATEGORY_MSC_V" column="DETAILED_CATEGORY" />
</DIExpression>
</DIProjection>
<DIFrom>
<DITableSpec name="COSTCATEGORY_MSC_V" />
</DIFrom>
</DISelect>
<DIAttributes>
<DIAttribute name="distinct_run_as_separate_process" value="no"/>
<DIAttribute name="group_by_run_as_separate_process" value="no"/>
<DIAttribute name="join_run_as_separate_process" value="no"/>
<DIAttribute name="order_by_run_as_separate_process" value="no"/>
<DIAttribute name="run_as_separate_process" value="no"/>
</DIAttributes>
</DIQuery>

<DIDatabaseTableSource typeId="22" datastoreName="DWSTAGING_DS" ownerName="DWSTAGING_ALIAS" tableName="COSTCATEGORY_MSC_V" >
<DIOutputView name="COSTCATEGORY_MSC_V"  />
<DIAttributes>
<DIAttribute name="array_fetch_size" value="1000"/>
<DIAttribute name="cache" value="yes"/>
<DIAttribute name="connection_port" value="no"/>
<DIAttribute name="enable_partitioning" value="no"/>
<DIAttribute name="name" value="DWSTAGING_DS"/>
<DIAttribute name="package_size" value="0"/>
<DIAttribute name="reader_is_DB2CDC_table" value="no"/>
<DIAttribute name="reader_overflow_file" value="overflow_file"/>
<DIAttribute name="reader_template_table" value="no"/>
<DIAttribute name="reader_use_overflow_file" value="no"/>
<DIAttribute name="reader_use_trex_transaction" value="no"/>
<DIAttribute name="table_weight" value="0"/>
</DIAttributes>
</DIDatabaseTableSource>

<DIDatabaseTableTarget typeID="11" bulkLoader="false" datastoreName="DWSTAGING_DS" ownerName="DWSTAGING_ALIAS" tableName="COSTCATEGORY_CSNP" >
<DIInputView name="QRY_NEW"  />
<DIAttributes>
<DIAttribute name="LDRLiveLoad" value="no"/>
<DIAttribute name="Table_Type" value="TABLE"/>
<DIAttribute name="connection_port" value="no"/>
<DIAttribute name="ldr_configuration_enabled" value="yes"/>
<DIAttribute name="ldr_configurations" hasNestedXMLTree ="true">
<LDRConfigurations>
<LDRConfiguration database_type="Microsoft_SQL_Server" database_version="Microsoft SQL Server 2005">
<auto_correct_using_merge>Yes</auto_correct_using_merge>
<bulk_ldr_all_rows/>
<bulk_ldr_max_errors/>
<bulk_ldr_rows_per_commit/>
<enable_partitioning>no</enable_partitioning>
<ignore_column_case>yes</ignore_column_case>
<ignore_columns_null>no</ignore_columns_null>
<ignore_columns_value/>
<loader_auto_correct>yes</loader_auto_correct>
<loader_bulk_load>0</loader_bulk_load>
<loader_compare_column>compare_by_name</loader_compare_column>
<loader_delete_map/>
<loader_drop_and_create_table>no</loader_drop_and_create_table>
<loader_insert_map/>
<loader_load_choice>append</loader_load_choice>
<loader_num_parallel_loaders>1</loader_num_parallel_loaders>
<loader_overflow_file>overflow_file</loader_overflow_file>
<loader_post_load1/>
<loader_pre_load1/>
<loader_quote_names>0</loader_quote_names>
<loader_transactional>no</loader_transactional>
<loader_transactional_order>0</loader_transactional_order>
<loader_update_key_columns>no</loader_update_key_columns>
<loader_update_map/>
<loader_use_user_defined_keys>no</loader_use_user_defined_keys>
<loader_xact_size>1000</loader_xact_size>
<mssql_bulk_ldr_mode>truncate</mssql_bulk_ldr_mode>
<mssql_bulk_ldr_packet_size>4</mssql_bulk_ldr_packet_size>
<overflow_file_format>Write data</overflow_file_format>
<overriding_substitution_parameter_for_tablename/>
<use_overflow_file>no</use_overflow_file>
<use_unicode_varchar>no</use_unicode_varchar>
<sql_text/>
</LDRConfiguration>
</LDRConfigurations>
</DIAttribute>
<DIAttribute name="loader_template_table" value="no"/>
<DIAttribute name="name" value="DWSTAGING_DS"/>
<DIAttribute name="use_unicode_varchar" value="no"/>
</DIAttributes>
</DIDatabaseTableTarget>

</DITransforms>
<DIAttributes>
<DIAttribute name="Cache_type" value="pageable_cache"/>
<DIAttribute name="Parallelism_degree" value="0"/>
<DIAttribute name="allows_both_input_and_output" value="yes"/>
<DIAttribute name="run_once" value="no"/>
<DIAttribute name="use_dataflow_links" value="no"/>
<DIAttribute name="use_datastore_links" value="yes"/>
<DIAttribute name="validation_xform_exists" value="no"/>
<DIAttribute name="validation_xform_stats" value="no"/>
</DIAttributes>
</DIDataflow>
<DIWorkflow name="MEASURETYPE_CSNP_WF" typeId="2" >
<DIProperties>
<DIAttribute name="Description" value="This workflow sources records from multiple source consolidation to consolidated snapshot tables."/>
</DIProperties>
<DISteps>
<DITryStep typeId="13" >
<DIUIOptions>
<DIAttribute name="ObjectDesc" value="The Try of the Try / Catch Block"/>
<DIAttribute name="ui_display_name" value="MEASURETYPE_CSNP_TRY"/>
</DIUIOptions>
<DISteps>
<DIScript>
<DIUIOptions>
<DIAttribute name="ObjectDesc" value="The script that calls the custom function that initiates the metadata tracking for the workflow. The script will also be used to populate the local workflow variables."/>
<DIAttribute name="ui_display_name" value="MEASURETYPE_CSNP_START_SC"/>
<DIAttribute name="ui_script_text" value="# CALL FUNCTION TO TRACK START OF WORKFLOW&#xA;ABC_STARTWF_FN(workflow_name(), $G_PROCESS_ID);&#xA;&#xA;CSNP_RERUN_CLEANUP('MEASURETYPE',$G_BATCH_ID,$G_FLAG_NEW);"/>
</DIUIOptions>
<DIFunctionCallStep typeId="23" >
<DIExpression isString="true" expr="abc_startwf_fn(workflow_name(), $G_PROCESS_ID)" >
<FUNCTION_CALL name="abc_startwf_fn"  type="DI" >
<FUNCTION_CALL name="workflow_name"  type="DI" />
<VARIABLE_REFERENCE name="$G_PROCESS_ID" />
</FUNCTION_CALL>
</DIExpression>
</DIFunctionCallStep>
<DIFunctionCallStep typeId="23" >
<DIExpression isString="true" expr="csnp_rerun_cleanup('MEASURETYPE', $G_BATCH_ID, $G_FLAG_NEW)" >
<FUNCTION_CALL name="csnp_rerun_cleanup"  type="DI" >
<CONSTANT value="MEASURETYPE" datatype="VARCHAR" size="11" />
<VARIABLE_REFERENCE name="$G_BATCH_ID" />
<VARIABLE_REFERENCE name="$G_FLAG_NEW" />
</FUNCTION_CALL>
</DIExpression>
</DIFunctionCallStep>
</DIScript>
<DICallStep typeId="1"  calledObjectType="Dataflow" name="MEASURETYPE_CSNP_DF" >
</DICallStep>
<DIScript>
<DIUIOptions>
<DIAttribute name="ObjectDesc" value="This script that calls the custom function that closes the metadata records that are part of tracking the workflow process."/>
<DIAttribute name="ui_display_name" value="MEASURETYPE_CSNP_END_SC"/>
<DIAttribute name="ui_script_text" value="# CALL FUNCTION TO TRACK END OF WORKFLOW&#xA;ABC_ENDWF_FN(workflow_name(), $G_PROCESS_ID);"/>
</DIUIOptions>
<DIFunctionCallStep typeId="23" >
<DIExpression isString="true" expr="abc_endwf_fn(workflow_name(), $G_PROCESS_ID)" >
<FUNCTION_CALL name="abc_endwf_fn"  type="DI" >
<FUNCTION_CALL name="workflow_name"  type="DI" />
<VARIABLE_REFERENCE name="$G_PROCESS_ID" />
</FUNCTION_CALL>
</DIExpression>
</DIFunctionCallStep>
</DIScript>
</DISteps>
<DICatch typeId="20" errorCode="210101" >
<DIUIOptions>
<DIAttribute name="ObjectDesc" value="The workflow catch object is the end of the TRY/CATCH block in BO DS.  This catch block contains the script object that calls a custom fail workflow function used to write the metadata for failed jobs.&#xA;"/>
<DIAttribute name="ui_display_name" value="MEASURETYPE_CSNP_CATCH"/>
</DIUIOptions>
<DISteps>
<DIScript>
<DIUIOptions>
<DIAttribute name="ObjectDesc" value="The script that calls the custom function that is used to write the metadata for failed workflows."/>
<DIAttribute name="ui_display_name" value="MEASURETYPE_CSNP_FAIL_SC"/>
<DIAttribute name="ui_script_text" value="# CALL FUNCTION TO TRACK FAIL OF WORKFLOW&#xA;ABC_FAILWF_FN(workflow_name(), $G_PROCESS_ID, 'Error: \[' || error_number() || '\] ' || error_message());"/>
</DIUIOptions>
<DIFunctionCallStep typeId="23" >
<DIExpression isString="true" expr="abc_failwf_fn(workflow_name(), $G_PROCESS_ID, ((('Error: \\[' || error_number()) || '\\] ') || error_message()))" >
<FUNCTION_CALL name="abc_failwf_fn"  type="DI" >
<FUNCTION_CALL name="workflow_name"  type="DI" />
<VARIABLE_REFERENCE name="$G_PROCESS_ID" />
<CONCAT>
<CONCAT>
<CONCAT>
<CONSTANT value="Error: \[" datatype="VARCHAR" size="9" />
<FUNCTION_CALL name="error_number"  type="DI" />
</CONCAT>
<CONSTANT value="\] " datatype="VARCHAR" size="3" />
</CONCAT>
<FUNCTION_CALL name="error_message"  type="DI" />
</CONCAT>
</FUNCTION_CALL>
</DIExpression>
</DIFunctionCallStep>
</DIScript>
</DISteps>
</DICatch>
</DITryStep>
</DISteps>
<DIAttributes>
<DIAttribute name="run_once" value="no"/>
<DIAttribute name="unit_of_recovery" value="no"/>
</DIAttributes>
</DIWorkflow>
<DIDataflow name="MEASURETYPE_CSNP_DF" typeId="1" >
<DIUIOptions>
<DIAnnotation name="ANNOTATION_0"><DIAttribute name="ObjectDesc" value="This dataflow sources records from the MSC to CSNP tables. New records in the MSC tables are added to the CSNP table, Update records in MSC are updated in CSNP, and delete records are deleted from the CSNP table."/>
</DIAnnotation></DIUIOptions>
<DIProperties>
<DIAttribute name="Description" value="This dataflow sources records from multiple source consolidation to consolidated snapshot tables."/>
</DIProperties>
<DITransforms>
<DITransformCall typeId="111" name="Map_Operation" >
<DIUIOptions>
<DIAttribute name="ObjectDesc" value="Map records as insert"/>
<DIAttribute name="ui_display_name" value="MO_INSERT"/>
</DIUIOptions>
<DIInputView name="QRY_NEW"  />
<DISchema name="MO_INSERT_1" >
</DISchema>
<DIAttributes>
<DIAttribute name="delete" value="discard"/>
<DIAttribute name="insert" value="discard"/>
<DIAttribute name="normal" value="insert"/>
<DIAttribute name="update" value="discard"/>
</DIAttributes>
</DITransformCall>
<DITransformCall typeId="111" name="Merge" >
<DIUIOptions>
<DIAttribute name="ObjectDesc" value="Merge new, update, and delete records"/>
<DIAttribute name="ui_display_name" value="MRG_NEW_UPD_DEL"/>
</DIUIOptions>
<DIInputView name="MO_INSERT_1"  />
<DIInputView name="MO_UPDATE"  />
<DISchema name="MRG_NEW_UPD_DEL_1" >
</DISchema>
</DITransformCall>

<!-- GUID is optional -->
<DITransformCall typeId="210" name="Case_Operation"  >
<DIUIOptions>
<DIAttribute name="CS_MD_FLAG_CS_NEW" value="MEASURETYPE_MSC.MD_FLAG = $G_FLAG_NEW "/>
<DIAttribute name="CS_MD_FLAG_CS_UPD" value="MEASURETYPE_MSC.MD_FLAG = $G_FLAG_UPDATE "/>
<DIAttribute name="ObjectDesc" value="Check the value of the incoming MD_FLAG to determine the case statement to execute"/>
<DIAttribute name="ui_acta_from_schema_0" value="MEASURETYPE_MSC"/>
<DIAttribute name="ui_display_name" value="CS_MD_FLAG"/>
</DIUIOptions>
<DIInputView name="MEASURETYPE_MSC" />
<DISchema name="CS_MD_FLAG" >
</DISchema>
<DICase>
<DISwitch label="CS_NEW" outputView="CS_MD_FLAG_CS_NEW" isDefault="false">
<DIExpression isString="true" expr="(MEASURETYPE_MSC.MD_FLAG = $G_FLAG_NEW)" >
<LOGICAL_OP op="EQ">
<COLUMN_REFERENCE  qualifier1="MEASURETYPE_MSC" column="MD_FLAG" />
<VARIABLE_REFERENCE name="$G_FLAG_NEW" />
</LOGICAL_OP>
</DIExpression>
</DISwitch>
<DISwitch label="CS_UPD" outputView="CS_MD_FLAG_CS_UPD" isDefault="false">
<DIExpression isString="true" expr="(MEASURETYPE_MSC.MD_FLAG = $G_FLAG_UPDATE)" >
<LOGICAL_OP op="EQ">
<COLUMN_REFERENCE  qualifier1="MEASURETYPE_MSC" column="MD_FLAG" />
<VARIABLE_REFERENCE name="$G_FLAG_UPDATE" />
</LOGICAL_OP>
</DIExpression>
</DISwitch>
</DICase>
<DIAttributes>
<DIAttribute name="Mutually_Exclusive" value="yes"/>
<DIAttribute name="Preserve_Expression_Order" value="no"/>
</DIAttributes>
</DITransformCall>
<DIQuery typeId="122"  >
<DIUIOptions>
<DIAttribute name="ObjectDesc" value="This query filters out only the records marked as new and sets the BATCH and PROCESS_ID fields"/>
<DIAttribute name="ui_acta_from_schema_0" value="CS_MD_FLAG_CS_NEW"/>
<DIAttribute name="ui_display_name" value="QRY_NEW"/>
</DIUIOptions>
<DISchema name="QRY_NEW" >
<DIElement name="MD_BATCH_ID" datatype="DECIMAL" precision="19" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_NEW.MD_BATCH_ID"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_PROCESS_ID" datatype="DECIMAL" precision="19" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_NEW.MD_PROCESS_ID"/>
</DIAttributes>
</DIElement>
<DIElement name="DESCRIPTION" datatype="VARCHAR" size="1024" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_NEW.DESCRIPTION"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_BUSINESS_KEY" datatype="VARCHAR" size="100" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_NEW.MD_BUSINESS_KEY"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_ENTERPRISE_KEY" datatype="DECIMAL" precision="18" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_NEW.MD_ENTERPRISE_KEY"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_FLAG" datatype="VARCHAR" size="10" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_NEW.MD_FLAG"/>
</DIAttributes>
</DIElement>
<DIElement name="MEASURETYPE_NAME" datatype="VARCHAR" size="60" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_NEW.MEASURETYPE_NAME"/>
</DIAttributes>
</DIElement>
</DISchema>
<DISelect>
<DIProjection>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_NEW.MD_BATCH_ID" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_NEW" column="MD_BATCH_ID" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_NEW.MD_PROCESS_ID" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_NEW" column="MD_PROCESS_ID" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_NEW.DESCRIPTION" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_NEW" column="DESCRIPTION" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_NEW.MD_BUSINESS_KEY" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_NEW" column="MD_BUSINESS_KEY" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_NEW.MD_ENTERPRISE_KEY" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_NEW" column="MD_ENTERPRISE_KEY" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_NEW.MD_FLAG" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_NEW" column="MD_FLAG" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_NEW.MEASURETYPE_NAME" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_NEW" column="MEASURETYPE_NAME" />
</DIExpression>
</DIProjection>
<DIFrom>
<DITableSpec name="CS_MD_FLAG_CS_NEW" />
</DIFrom>
</DISelect>
<DIAttributes>
<DIAttribute name="distinct_run_as_separate_process" value="no"/>
<DIAttribute name="group_by_run_as_separate_process" value="no"/>
<DIAttribute name="join_run_as_separate_process" value="no"/>
<DIAttribute name="order_by_run_as_separate_process" value="no"/>
<DIAttribute name="run_as_separate_process" value="no"/>
</DIAttributes>
</DIQuery>

<DIQuery typeId="122"  >
<DIUIOptions>
<DIAttribute name="ObjectDesc" value="This query filters out only the records marked as update and sets the BATCH and PROCESS_ID fields"/>
<DIAttribute name="ui_acta_from_schema_0" value="CS_MD_FLAG_CS_UPD"/>
<DIAttribute name="ui_display_name" value="QRY_UPD"/>
</DIUIOptions>
<DISchema name="QRY_UPD" >
<DIElement name="MD_BATCH_ID" datatype="DECIMAL" precision="19" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_UPD.MD_BATCH_ID"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_PROCESS_ID" datatype="DECIMAL" precision="19" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_UPD.MD_PROCESS_ID"/>
</DIAttributes>
</DIElement>
<DIElement name="DESCRIPTION" datatype="VARCHAR" size="1024" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_UPD.DESCRIPTION"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_BUSINESS_KEY" datatype="VARCHAR" size="100" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_UPD.MD_BUSINESS_KEY"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_ENTERPRISE_KEY" datatype="DECIMAL" precision="18" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_UPD.MD_ENTERPRISE_KEY"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_FLAG" datatype="VARCHAR" size="10" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_UPD.MD_FLAG"/>
</DIAttributes>
</DIElement>
<DIElement name="MEASURETYPE_NAME" datatype="VARCHAR" size="60" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_UPD.MEASURETYPE_NAME"/>
</DIAttributes>
</DIElement>
</DISchema>
<DISelect>
<DIProjection>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_UPD.MD_BATCH_ID" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_UPD" column="MD_BATCH_ID" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_UPD.MD_PROCESS_ID" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_UPD" column="MD_PROCESS_ID" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_UPD.DESCRIPTION" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_UPD" column="DESCRIPTION" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_UPD.MD_BUSINESS_KEY" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_UPD" column="MD_BUSINESS_KEY" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_UPD.MD_ENTERPRISE_KEY" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_UPD" column="MD_ENTERPRISE_KEY" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_UPD.MD_FLAG" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_UPD" column="MD_FLAG" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_UPD.MEASURETYPE_NAME" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_UPD" column="MEASURETYPE_NAME" />
</DIExpression>
</DIProjection>
<DIFrom>
<DITableSpec name="CS_MD_FLAG_CS_UPD" />
</DIFrom>
</DISelect>
<DIAttributes>
<DIAttribute name="distinct_run_as_separate_process" value="no"/>
<DIAttribute name="group_by_run_as_separate_process" value="no"/>
<DIAttribute name="join_run_as_separate_process" value="no"/>
<DIAttribute name="order_by_run_as_separate_process" value="no"/>
<DIAttribute name="run_as_separate_process" value="no"/>
</DIAttributes>
</DIQuery>

<DITransformCall typeId="111" name="Map_Operation" >
<DIUIOptions>
<DIAttribute name="ObjectDesc" value="Map records as update"/>
<DIAttribute name="ui_display_name" value="MO_UPDATE"/>
</DIUIOptions>
<DIInputView name="QRY_UPD"  />
<DISchema name="MO_UPDATE" >
</DISchema>
<DIAttributes>
<DIAttribute name="delete" value="discard"/>
<DIAttribute name="insert" value="discard"/>
<DIAttribute name="normal" value="update"/>
<DIAttribute name="update" value="discard"/>
</DIAttributes>
</DITransformCall>
<DIDatabaseTableTarget typeID="11" bulkLoader="false" datastoreName="DWSTAGING_DS" ownerName="DWSTAGING_ALIAS" tableName="MEASURETYPE_CSNP" >
<DIInputView name="MRG_NEW_UPD_DEL_1"  />
<DIAttributes>
<DIAttribute name="LDRLiveLoad" value="no"/>
<DIAttribute name="Table_Type" value="TABLE"/>
<DIAttribute name="connection_port" value="no"/>
<DIAttribute name="ldr_configuration_enabled" value="yes"/>
<DIAttribute name="ldr_configurations" hasNestedXMLTree ="true">
<LDRConfigurations>
<LDRConfiguration database_type="Microsoft_SQL_Server" database_version="Microsoft SQL Server 2005">
<auto_correct_using_merge>yes</auto_correct_using_merge>
<bulk_ldr_all_rows/>
<bulk_ldr_max_errors/>
<bulk_ldr_rows_per_commit/>
<enable_partitioning>no</enable_partitioning>
<ignore_column_case>yes</ignore_column_case>
<ignore_columns_null>no</ignore_columns_null>
<ignore_columns_value/>
<loader_auto_correct>yes</loader_auto_correct>
<loader_bulk_load>0</loader_bulk_load>
<loader_compare_column>compare_by_name</loader_compare_column>
<loader_delete_map/>
<loader_drop_and_create_table>no</loader_drop_and_create_table>
<loader_insert_map/>
<loader_load_choice>append</loader_load_choice>
<loader_num_parallel_loaders>1</loader_num_parallel_loaders>
<loader_overflow_file>overflow_file</loader_overflow_file>
<loader_post_load1/>
<loader_pre_load1/>
<loader_quote_names>0</loader_quote_names>
<loader_transactional>no</loader_transactional>
<loader_transactional_order>0</loader_transactional_order>
<loader_update_key_columns>no</loader_update_key_columns>
<loader_update_map/>
<loader_use_user_defined_keys>no</loader_use_user_defined_keys>
<loader_xact_size>1000</loader_xact_size>
<mssql_bulk_ldr_mode>append</mssql_bulk_ldr_mode>
<mssql_bulk_ldr_packet_size>4</mssql_bulk_ldr_packet_size>
<overflow_file_format>write_data</overflow_file_format>
<overriding_substitution_parameter_for_tablename/>
<use_overflow_file>no</use_overflow_file>
<use_unicode_varchar>no</use_unicode_varchar>
<sql_text/>
</LDRConfiguration>
</LDRConfigurations>
</DIAttribute>
<DIAttribute name="loader_template_table" value="no"/>
<DIAttribute name="name" value="DWSTAGING_DS"/>
<DIAttribute name="use_unicode_varchar" value="no"/>
</DIAttributes>
</DIDatabaseTableTarget>

<DIDatabaseTableSource typeId="22" datastoreName="DWSTAGING_DS" ownerName="DWSTAGING_ALIAS" tableName="MEASURETYPE_MSC" >
<DIOutputView name="MEASURETYPE_MSC"  />
<DIAttributes>
<DIAttribute name="array_fetch_size" value="1000"/>
<DIAttribute name="cache" value="yes"/>
<DIAttribute name="connection_port" value="no"/>
<DIAttribute name="enable_partitioning" value="no"/>
<DIAttribute name="name" value="DWSTAGING_DS"/>
<DIAttribute name="package_size" value="0"/>
<DIAttribute name="reader_is_DB2CDC_table" value="no"/>
<DIAttribute name="reader_overflow_file" value="overflow_file"/>
<DIAttribute name="reader_template_table" value="no"/>
<DIAttribute name="reader_use_overflow_file" value="no"/>
<DIAttribute name="reader_use_trex_transaction" value="no"/>
<DIAttribute name="table_weight" value="0"/>
</DIAttributes>
</DIDatabaseTableSource>

</DITransforms>
<DIAttributes>
<DIAttribute name="Cache_type" value="pageable_cache"/>
<DIAttribute name="Parallelism_degree" value="0"/>
<DIAttribute name="allows_both_input_and_output" value="yes"/>
<DIAttribute name="run_once" value="no"/>
<DIAttribute name="use_dataflow_links" value="no"/>
<DIAttribute name="use_datastore_links" value="yes"/>
<DIAttribute name="validation_xform_exists" value="no"/>
<DIAttribute name="validation_xform_stats" value="no"/>
</DIAttributes>
</DIDataflow>
<DIWorkflow name="STATUS_CSNP_WF" typeId="2" >
<DIProperties>
<DIAttribute name="Description" value="This workflow sources records from multiple source consolidation to consolidated snapshot tables."/>
</DIProperties>
<DISteps>
<DITryStep typeId="13" >
<DIUIOptions>
<DIAttribute name="ObjectDesc" value="The Try of the Try / Catch Block"/>
<DIAttribute name="ui_display_name" value="STATUS_CSNP_TRY"/>
</DIUIOptions>
<DISteps>
<DIScript>
<DIUIOptions>
<DIAttribute name="ObjectDesc" value="The script that calls the custom function that initiates the metadata tracking for the workflow. The script will also be used to populate the local workflow variables."/>
<DIAttribute name="ui_display_name" value="STATUS_CSNP_START_SC"/>
<DIAttribute name="ui_script_text" value="# CALL FUNCTION TO TRACK START OF WORKFLOW&#xA;ABC_STARTWF_FN(workflow_name(), $G_PROCESS_ID);&#xA;&#xA;CSNP_RERUN_CLEANUP('STATUS',$G_BATCH_ID,$G_FLAG_NEW);"/>
</DIUIOptions>
<DIFunctionCallStep typeId="23" >
<DIExpression isString="true" expr="abc_startwf_fn(workflow_name(), $G_PROCESS_ID)" >
<FUNCTION_CALL name="abc_startwf_fn"  type="DI" >
<FUNCTION_CALL name="workflow_name"  type="DI" />
<VARIABLE_REFERENCE name="$G_PROCESS_ID" />
</FUNCTION_CALL>
</DIExpression>
</DIFunctionCallStep>
<DIFunctionCallStep typeId="23" >
<DIExpression isString="true" expr="csnp_rerun_cleanup('STATUS', $G_BATCH_ID, $G_FLAG_NEW)" >
<FUNCTION_CALL name="csnp_rerun_cleanup"  type="DI" >
<CONSTANT value="STATUS" datatype="VARCHAR" size="6" />
<VARIABLE_REFERENCE name="$G_BATCH_ID" />
<VARIABLE_REFERENCE name="$G_FLAG_NEW" />
</FUNCTION_CALL>
</DIExpression>
</DIFunctionCallStep>
</DIScript>
<DICallStep typeId="1"  calledObjectType="Dataflow" name="STATUS_CSNP_DF" >
</DICallStep>
<DIScript>
<DIUIOptions>
<DIAttribute name="ObjectDesc" value="This script that calls the custom function that closes the metadata records that are part of tracking the workflow process."/>
<DIAttribute name="ui_display_name" value="STATUS_CSNP_END_SC"/>
<DIAttribute name="ui_script_text" value="# CALL FUNCTION TO TRACK END OF WORKFLOW&#xA;ABC_ENDWF_FN(workflow_name(), $G_PROCESS_ID);"/>
</DIUIOptions>
<DIFunctionCallStep typeId="23" >
<DIExpression isString="true" expr="abc_endwf_fn(workflow_name(), $G_PROCESS_ID)" >
<FUNCTION_CALL name="abc_endwf_fn"  type="DI" >
<FUNCTION_CALL name="workflow_name"  type="DI" />
<VARIABLE_REFERENCE name="$G_PROCESS_ID" />
</FUNCTION_CALL>
</DIExpression>
</DIFunctionCallStep>
</DIScript>
</DISteps>
<DICatch typeId="20" errorCode="210101" >
<DIUIOptions>
<DIAttribute name="ObjectDesc" value="The workflow catch object is the end of the TRY/CATCH block in BO DS.  This catch block contains the script object that calls a custom fail workflow function used to write the metadata for failed jobs.&#xA;"/>
<DIAttribute name="ui_display_name" value="STATUS_CSNP_CATCH"/>
</DIUIOptions>
<DISteps>
<DIScript>
<DIUIOptions>
<DIAttribute name="ObjectDesc" value="The script that calls the custom function that is used to write the metadata for failed workflows."/>
<DIAttribute name="ui_display_name" value="STATUS_CSNP_FAIL_SC"/>
<DIAttribute name="ui_script_text" value="# CALL FUNCTION TO TRACK FAIL OF WORKFLOW&#xA;ABC_FAILWF_FN(workflow_name(), $G_PROCESS_ID, 'Error: \[' || error_number() || '\] ' || error_message());"/>
</DIUIOptions>
<DIFunctionCallStep typeId="23" >
<DIExpression isString="true" expr="abc_failwf_fn(workflow_name(), $G_PROCESS_ID, ((('Error: \\[' || error_number()) || '\\] ') || error_message()))" >
<FUNCTION_CALL name="abc_failwf_fn"  type="DI" >
<FUNCTION_CALL name="workflow_name"  type="DI" />
<VARIABLE_REFERENCE name="$G_PROCESS_ID" />
<CONCAT>
<CONCAT>
<CONCAT>
<CONSTANT value="Error: \[" datatype="VARCHAR" size="9" />
<FUNCTION_CALL name="error_number"  type="DI" />
</CONCAT>
<CONSTANT value="\] " datatype="VARCHAR" size="3" />
</CONCAT>
<FUNCTION_CALL name="error_message"  type="DI" />
</CONCAT>
</FUNCTION_CALL>
</DIExpression>
</DIFunctionCallStep>
</DIScript>
</DISteps>
</DICatch>
</DITryStep>
</DISteps>
<DIAttributes>
<DIAttribute name="run_once" value="no"/>
<DIAttribute name="unit_of_recovery" value="no"/>
</DIAttributes>
</DIWorkflow>
<DIDataflow name="STATUS_CSNP_DF" typeId="1" >
<DIUIOptions>
<DIAnnotation name="ANNOTATION_0"><DIAttribute name="ObjectDesc" value="This dataflow sources records from the MSC to CSNP tables. New records in the MSC tables are added to the CSNP table, Update records in MSC are updated in CSNP, and delete records are deleted from the CSNP table."/>
</DIAnnotation></DIUIOptions>
<DIProperties>
<DIAttribute name="Description" value="This dataflow sources records from multiple source consolidation to consolidated snapshot tables."/>
</DIProperties>
<DITransforms>
<DITransformCall typeId="111" name="Map_Operation" >
<DIUIOptions>
<DIAttribute name="ObjectDesc" value="Map records as insert"/>
<DIAttribute name="ui_display_name" value="MO_INSERT"/>
</DIUIOptions>
<DIInputView name="QRY_NEW"  />
<DISchema name="MO_INSERT_1" >
</DISchema>
<DIAttributes>
<DIAttribute name="delete" value="discard"/>
<DIAttribute name="insert" value="discard"/>
<DIAttribute name="normal" value="insert"/>
<DIAttribute name="update" value="discard"/>
</DIAttributes>
</DITransformCall>
<DITransformCall typeId="111" name="Merge" >
<DIUIOptions>
<DIAttribute name="ObjectDesc" value="Merge new, update, and delete records"/>
<DIAttribute name="ui_display_name" value="MRG_NEW_UPD_DEL"/>
</DIUIOptions>
<DIInputView name="MO_INSERT_1"  />
<DIInputView name="MO_UPDATE"  />
<DISchema name="MRG_NEW_UPD_DEL_1" >
</DISchema>
</DITransformCall>

<!-- GUID is optional -->
<DITransformCall typeId="210" name="Case_Operation"  >
<DIUIOptions>
<DIAttribute name="CS_MD_FLAG_CS_NEW" value="STATUS_MSC.MD_FLAG = $G_FLAG_NEW "/>
<DIAttribute name="CS_MD_FLAG_CS_UPD" value="STATUS_MSC.MD_FLAG = $G_FLAG_UPDATE "/>
<DIAttribute name="ObjectDesc" value="Check the value of the incoming MD_FLAG to determine the case statement to execute"/>
<DIAttribute name="ui_acta_from_schema_0" value="STATUS_MSC"/>
<DIAttribute name="ui_display_name" value="CS_MD_FLAG"/>
</DIUIOptions>
<DIInputView name="STATUS_MSC" />
<DISchema name="CS_MD_FLAG" >
</DISchema>
<DICase>
<DISwitch label="CS_NEW" outputView="CS_MD_FLAG_CS_NEW" isDefault="false">
<DIExpression isString="true" expr="(STATUS_MSC.MD_FLAG = $G_FLAG_NEW)" >
<LOGICAL_OP op="EQ">
<COLUMN_REFERENCE  qualifier1="STATUS_MSC" column="MD_FLAG" />
<VARIABLE_REFERENCE name="$G_FLAG_NEW" />
</LOGICAL_OP>
</DIExpression>
</DISwitch>
<DISwitch label="CS_UPD" outputView="CS_MD_FLAG_CS_UPD" isDefault="false">
<DIExpression isString="true" expr="(STATUS_MSC.MD_FLAG = $G_FLAG_UPDATE)" >
<LOGICAL_OP op="EQ">
<COLUMN_REFERENCE  qualifier1="STATUS_MSC" column="MD_FLAG" />
<VARIABLE_REFERENCE name="$G_FLAG_UPDATE" />
</LOGICAL_OP>
</DIExpression>
</DISwitch>
</DICase>
<DIAttributes>
<DIAttribute name="Mutually_Exclusive" value="yes"/>
<DIAttribute name="Preserve_Expression_Order" value="no"/>
</DIAttributes>
</DITransformCall>
<DIQuery typeId="122"  >
<DIUIOptions>
<DIAttribute name="ObjectDesc" value="This query filters out only the records marked as new and sets the BATCH and PROCESS_ID fields"/>
<DIAttribute name="ui_acta_from_schema_0" value="CS_MD_FLAG_CS_NEW"/>
<DIAttribute name="ui_display_name" value="QRY_NEW"/>
</DIUIOptions>
<DISchema name="QRY_NEW" >
<DIElement name="MD_BATCH_ID" datatype="DECIMAL" precision="19" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_NEW.MD_BATCH_ID"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_PROCESS_ID" datatype="DECIMAL" precision="19" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_NEW.MD_PROCESS_ID"/>
</DIAttributes>
</DIElement>
<DIElement name="CODE" datatype="DOUBLE" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_NEW.CODE"/>
</DIAttributes>
</DIElement>
<DIElement name="DESCRIPTION" datatype="VARCHAR" size="1024" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_NEW.DESCRIPTION"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_BUSINESS_KEY" datatype="VARCHAR" size="100" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_NEW.MD_BUSINESS_KEY"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_ENTERPRISE_KEY" datatype="DECIMAL" precision="18" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_NEW.MD_ENTERPRISE_KEY"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_FLAG" datatype="VARCHAR" size="10" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_NEW.MD_FLAG"/>
</DIAttributes>
</DIElement>
<DIElement name="STATUS_NAME" datatype="VARCHAR" size="60" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_NEW.STATUS_NAME"/>
</DIAttributes>
</DIElement>
</DISchema>
<DISelect>
<DIProjection>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_NEW.MD_BATCH_ID" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_NEW" column="MD_BATCH_ID" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_NEW.MD_PROCESS_ID" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_NEW" column="MD_PROCESS_ID" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_NEW.CODE" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_NEW" column="CODE" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_NEW.DESCRIPTION" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_NEW" column="DESCRIPTION" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_NEW.MD_BUSINESS_KEY" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_NEW" column="MD_BUSINESS_KEY" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_NEW.MD_ENTERPRISE_KEY" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_NEW" column="MD_ENTERPRISE_KEY" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_NEW.MD_FLAG" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_NEW" column="MD_FLAG" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_NEW.STATUS_NAME" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_NEW" column="STATUS_NAME" />
</DIExpression>
</DIProjection>
<DIFrom>
<DITableSpec name="CS_MD_FLAG_CS_NEW" />
</DIFrom>
</DISelect>
<DIAttributes>
<DIAttribute name="distinct_run_as_separate_process" value="no"/>
<DIAttribute name="group_by_run_as_separate_process" value="no"/>
<DIAttribute name="join_run_as_separate_process" value="no"/>
<DIAttribute name="order_by_run_as_separate_process" value="no"/>
<DIAttribute name="run_as_separate_process" value="no"/>
</DIAttributes>
</DIQuery>

<DIQuery typeId="122"  >
<DIUIOptions>
<DIAttribute name="ObjectDesc" value="This query filters out only the records marked as update and sets the BATCH and PROCESS_ID fields"/>
<DIAttribute name="ui_acta_from_schema_0" value="CS_MD_FLAG_CS_UPD"/>
<DIAttribute name="ui_display_name" value="QRY_UPD"/>
</DIUIOptions>
<DISchema name="QRY_UPD" >
<DIElement name="MD_BATCH_ID" datatype="DECIMAL" precision="19" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_UPD.MD_BATCH_ID"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_PROCESS_ID" datatype="DECIMAL" precision="19" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_UPD.MD_PROCESS_ID"/>
</DIAttributes>
</DIElement>
<DIElement name="CODE" datatype="DOUBLE" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_UPD.CODE"/>
</DIAttributes>
</DIElement>
<DIElement name="DESCRIPTION" datatype="VARCHAR" size="1024" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_UPD.DESCRIPTION"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_BUSINESS_KEY" datatype="VARCHAR" size="100" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_UPD.MD_BUSINESS_KEY"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_ENTERPRISE_KEY" datatype="DECIMAL" precision="18" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_UPD.MD_ENTERPRISE_KEY"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_FLAG" datatype="VARCHAR" size="10" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_UPD.MD_FLAG"/>
</DIAttributes>
</DIElement>
<DIElement name="STATUS_NAME" datatype="VARCHAR" size="60" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_UPD.STATUS_NAME"/>
</DIAttributes>
</DIElement>
</DISchema>
<DISelect>
<DIProjection>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_UPD.MD_BATCH_ID" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_UPD" column="MD_BATCH_ID" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_UPD.MD_PROCESS_ID" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_UPD" column="MD_PROCESS_ID" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_UPD.CODE" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_UPD" column="CODE" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_UPD.DESCRIPTION" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_UPD" column="DESCRIPTION" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_UPD.MD_BUSINESS_KEY" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_UPD" column="MD_BUSINESS_KEY" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_UPD.MD_ENTERPRISE_KEY" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_UPD" column="MD_ENTERPRISE_KEY" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_UPD.MD_FLAG" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_UPD" column="MD_FLAG" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_UPD.STATUS_NAME" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_UPD" column="STATUS_NAME" />
</DIExpression>
</DIProjection>
<DIFrom>
<DITableSpec name="CS_MD_FLAG_CS_UPD" />
</DIFrom>
</DISelect>
<DIAttributes>
<DIAttribute name="distinct_run_as_separate_process" value="no"/>
<DIAttribute name="group_by_run_as_separate_process" value="no"/>
<DIAttribute name="join_run_as_separate_process" value="no"/>
<DIAttribute name="order_by_run_as_separate_process" value="no"/>
<DIAttribute name="run_as_separate_process" value="no"/>
</DIAttributes>
</DIQuery>

<DITransformCall typeId="111" name="Map_Operation" >
<DIUIOptions>
<DIAttribute name="ObjectDesc" value="Map records as update"/>
<DIAttribute name="ui_display_name" value="MO_UPDATE"/>
</DIUIOptions>
<DIInputView name="QRY_UPD"  />
<DISchema name="MO_UPDATE" >
</DISchema>
<DIAttributes>
<DIAttribute name="delete" value="discard"/>
<DIAttribute name="insert" value="discard"/>
<DIAttribute name="normal" value="update"/>
<DIAttribute name="update" value="discard"/>
</DIAttributes>
</DITransformCall>
<DIDatabaseTableTarget typeID="11" bulkLoader="false" datastoreName="DWSTAGING_DS" ownerName="DWSTAGING_ALIAS" tableName="STATUS_CSNP" >
<DIInputView name="MRG_NEW_UPD_DEL_1"  />
<DIAttributes>
<DIAttribute name="LDRLiveLoad" value="no"/>
<DIAttribute name="Table_Type" value="TABLE"/>
<DIAttribute name="connection_port" value="no"/>
<DIAttribute name="ldr_configuration_enabled" value="yes"/>
<DIAttribute name="ldr_configurations" hasNestedXMLTree ="true">
<LDRConfigurations>
<LDRConfiguration database_type="Microsoft_SQL_Server" database_version="Microsoft SQL Server 2005">
<auto_correct_using_merge>yes</auto_correct_using_merge>
<bulk_ldr_all_rows/>
<bulk_ldr_max_errors/>
<bulk_ldr_rows_per_commit/>
<enable_partitioning>no</enable_partitioning>
<ignore_column_case>yes</ignore_column_case>
<ignore_columns_null>no</ignore_columns_null>
<ignore_columns_value/>
<loader_auto_correct>yes</loader_auto_correct>
<loader_bulk_load>0</loader_bulk_load>
<loader_compare_column>compare_by_name</loader_compare_column>
<loader_delete_map/>
<loader_drop_and_create_table>no</loader_drop_and_create_table>
<loader_insert_map/>
<loader_load_choice>append</loader_load_choice>
<loader_num_parallel_loaders>1</loader_num_parallel_loaders>
<loader_overflow_file>overflow_file</loader_overflow_file>
<loader_post_load1/>
<loader_pre_load1/>
<loader_quote_names>0</loader_quote_names>
<loader_transactional>no</loader_transactional>
<loader_transactional_order>0</loader_transactional_order>
<loader_update_key_columns>no</loader_update_key_columns>
<loader_update_map/>
<loader_use_user_defined_keys>no</loader_use_user_defined_keys>
<loader_xact_size>1000</loader_xact_size>
<mssql_bulk_ldr_mode>append</mssql_bulk_ldr_mode>
<mssql_bulk_ldr_packet_size>4</mssql_bulk_ldr_packet_size>
<overflow_file_format>write_data</overflow_file_format>
<overriding_substitution_parameter_for_tablename/>
<use_overflow_file>no</use_overflow_file>
<use_unicode_varchar>no</use_unicode_varchar>
<sql_text/>
</LDRConfiguration>
</LDRConfigurations>
</DIAttribute>
<DIAttribute name="loader_template_table" value="no"/>
<DIAttribute name="name" value="DWSTAGING_DS"/>
<DIAttribute name="use_unicode_varchar" value="no"/>
</DIAttributes>
</DIDatabaseTableTarget>

<DIDatabaseTableSource typeId="22" datastoreName="DWSTAGING_DS" ownerName="DWSTAGING_ALIAS" tableName="STATUS_MSC" >
<DIOutputView name="STATUS_MSC"  />
<DIAttributes>
<DIAttribute name="array_fetch_size" value="1000"/>
<DIAttribute name="cache" value="yes"/>
<DIAttribute name="connection_port" value="no"/>
<DIAttribute name="enable_partitioning" value="no"/>
<DIAttribute name="name" value="DWSTAGING_DS"/>
<DIAttribute name="package_size" value="0"/>
<DIAttribute name="reader_is_DB2CDC_table" value="no"/>
<DIAttribute name="reader_overflow_file" value="overflow_file"/>
<DIAttribute name="reader_template_table" value="no"/>
<DIAttribute name="reader_use_overflow_file" value="no"/>
<DIAttribute name="reader_use_trex_transaction" value="no"/>
<DIAttribute name="table_weight" value="0"/>
</DIAttributes>
</DIDatabaseTableSource>

</DITransforms>
<DIAttributes>
<DIAttribute name="Cache_type" value="pageable_cache"/>
<DIAttribute name="Parallelism_degree" value="0"/>
<DIAttribute name="allows_both_input_and_output" value="yes"/>
<DIAttribute name="run_once" value="no"/>
<DIAttribute name="use_dataflow_links" value="no"/>
<DIAttribute name="use_datastore_links" value="yes"/>
<DIAttribute name="validation_xform_exists" value="no"/>
<DIAttribute name="validation_xform_stats" value="no"/>
</DIAttributes>
</DIDataflow>

</DataIntegratorExport>

